User Tools

Site Tools


en:tutorials:display:drag_and_drop

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:tutorials:display:drag_and_drop [2018/08/28 05:55 (7 years ago)] – created sausageen: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. 
-</WRAP> 
  
 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->pstPayload; +    if(_pstEvent->eID == orxSYSTEM_EVENT_DROP) 
- orxU32 filesDroppedCount = payload->stDrop.u32Number; +    { 
- const orxSTRING *filenameList = payload->stDrop.azValueList;+        orxSYSTEM_EVENT_PAYLOAD *payload = (orxSYSTEM_EVENT_PAYLOAD *)_pstEvent->pstPayload; 
 +        orxU32 filesDroppedCount = payload->stDrop.u32Number; 
 +        const orxSTRING *filenameList = payload->stDrop.azValueList;
  
- for (int i=0; i<filesDroppedCount; i++){ +        for (int i=0; i<filesDroppedCount; i++) 
- const orxSTRING fileName = filenameList[i]; +        
- } +            const orxSTRING fileName = filenameList[i]; 
 +
 +    }
  
 </code> </code>
en/tutorials/display/drag_and_drop.1535460944.txt.gz · Last modified: 2018/08/28 08:55 (7 years ago) (external edit)