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

Both sides previous revision Previous revision
en:tutorials:display:drag_and_drop [2018/09/10 10:41 (2 months ago)]
sausage
en:tutorials:display:drag_and_drop [2018/09/10 13:39 (2 months ago)] (current)
iarwain
Line 14: 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.txt · Last modified: 2018/09/10 13:39 (2 months ago) by iarwain