User Tools

Site Tools


en:examples:input:mouse_input

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:examples:input:mouse_input [2018/02/13 20:47 (8 years ago)] – ↷ Page moved from examples:input:mouse_input to en:examples:input:mouse_input iarwainen:examples:input:mouse_input [2025/08/18 17:54 (3 weeks ago)] (current) – [Config] iarwain
Line 7: Line 7:
 orxSTATUS orxFASTCALL Init() orxSTATUS orxFASTCALL Init()
 { {
-  orxClock_Register(orxClock_FindFirst(orx2F(-1.0f), orxCLOCK_TYPE_CORE), Update, orxNULL, orxMODULE_ID_MAIN, orxCLOCK_PRIORITY_NORMAL);+  orxClock_Register(orxClock_Get(orxCLOCK_KZ_CORE), Update, orxNULL, orxMODULE_ID_MAIN, orxCLOCK_PRIORITY_NORMAL);
 ... ...
 </code> </code>
Line 14: Line 14:
 void orxFASTCALL Update(const orxCLOCK_INFO *_pstClockInfo, void *_pContext) void orxFASTCALL Update(const orxCLOCK_INFO *_pstClockInfo, void *_pContext)
 { {
 + orxInput_PushSet("MenuInputSet");
 +    
  if (orxInput_IsActive("MouseWheelUp") == orxTRUE){  if (orxInput_IsActive("MouseWheelUp") == orxTRUE){
  orxLOG("MouseWheelUp");  orxLOG("MouseWheelUp");
Line 29: Line 31:
  orxLOG("MiddleClick");  orxLOG("MiddleClick");
  }  }
 +
 + orxInput_PopSet();
 } }
 ... ...
Line 37: Line 41:
  
 <code=ini> <code=ini>
-[KeysForInput]+[MenuInputSet]
 KEY_ESCAPE       = Quit KEY_ESCAPE       = Quit
 MOUSE_LEFT = LeftClick MOUSE_LEFT = LeftClick
en/examples/input/mouse_input.1518583663.txt.gz · Last modified: 2018/02/14 00:47 (8 years ago) (external edit)