This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:examples:input:mouse_input [2018/02/14 08:47 (8 years ago)] – external edit 127.0.0.1 | en:examples:input:mouse_input [2025/09/30 17:26 (4 weeks ago)] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| orxSTATUS orxFASTCALL Init() | orxSTATUS orxFASTCALL Init() | ||
| { | { | ||
| - | orxClock_Register(orxClock_FindFirst(orx2F(-1.0f), | + | orxClock_Register(orxClock_Get(orxCLOCK_KZ_CORE), Update, orxNULL, orxMODULE_ID_MAIN, |
| ... | ... | ||
| </ | </ | ||
| Line 14: | Line 14: | ||
| void orxFASTCALL Update(const orxCLOCK_INFO *_pstClockInfo, | void orxFASTCALL Update(const orxCLOCK_INFO *_pstClockInfo, | ||
| { | { | ||
| + | orxInput_PushSet(" | ||
| + | | ||
| if (orxInput_IsActive(" | if (orxInput_IsActive(" | ||
| orxLOG(" | orxLOG(" | ||
| Line 29: | Line 31: | ||
| orxLOG(" | orxLOG(" | ||
| } | } | ||
| + | |||
| + | orxInput_PopSet(); | ||
| } | } | ||
| ... | ... | ||
| Line 37: | Line 41: | ||
| < | < | ||
| - | [KeysForInput] | + | [MenuInputSet] |
| KEY_ESCAPE | KEY_ESCAPE | ||
| MOUSE_LEFT = LeftClick | MOUSE_LEFT = LeftClick | ||