This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:tutorials:display:drag_and_drop [2018/08/28 05:55 (7 years ago)] – created sausage | en:tutorials:display:drag_and_drop [2018/09/10 09:39 (7 years ago)] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Drag and Drop ====== | ====== Drag and Drop ====== | ||
- | |||
- | <WRAP center round info 90%> | ||
- | This feature will be released in September 2018. | ||
- | </ | ||
Actually, really just drop. Orx supports being able to drop files onto the game window. Very neat for writing applications in Orx and being able to add or load files that are dragged onto it. | Actually, really just drop. Orx supports being able to drop files onto the game window. Very neat for writing applications in Orx and being able to add or load files that are dragged onto it. | ||
Line 18: | Line 14: | ||
orxSTATUS orxFASTCALL SystemEventHandler(const orxEVENT *_pstEvent) | orxSTATUS orxFASTCALL SystemEventHandler(const orxEVENT *_pstEvent) | ||
{ | { | ||
- | orxSYSTEM_EVENT_PAYLOAD *payload = (orxSYSTEM_EVENT_PAYLOAD *)_pstEvent-> | + | if(_pstEvent-> |
- | orxU32 filesDroppedCount = payload-> | + | { |
- | const orxSTRING *filenameList = payload-> | + | |
+ | orxU32 filesDroppedCount = payload-> | ||
+ | const orxSTRING *filenameList = payload-> | ||
- | for (int i=0; i< | + | |
- | const orxSTRING fileName = filenameList[i]; | + | |
- | } | + | const orxSTRING fileName = filenameList[i]; |
+ | } | ||
+ | | ||
} | } | ||
</ | </ |