skip to content
Orx Learning
User Tools
Admin
Log In
Site Tools
Search
Tools
Show page
Old revisions
Export to PDF
Backlinks
Recent Changes
Media Manager
Sitemap
Log In
>
Recent Changes
Media Manager
Sitemap
Trace:
Welcome
Beginner's Guide
Config
Examples
Tutorials
en:examples:input:keyboard_input
====== Keyboard Inputs ====== ===== Code ===== <code=c> orxSTATUS orxFASTCALL Init() { orxClock_Register(orxClock_Get(orxCLOCK_KZ_CORE), Update, orxNULL, orxMODULE_ID_MAIN, orxCLOCK_PRIORITY_NORMAL); ... </code> <code=c> void orxFASTCALL Update(const orxCLOCK_INFO *_pstClockInfo, void *_pContext) { if (orxInput_IsActive("GoLeft")) { orxLOG("Left Key Pressed."); } if (orxInput_IsActive("GoRight")) { orxLOG("Right Key Pressed."); } if (orxInput_IsActive("GoUp")) { orxLOG("Up Key Pressed."); } if (orxInput_IsActive("GoDown")) { orxLOG("Down Key Pressed."); } } ... </code> ===== Config ===== <code=ini> [KeysForInput] KEY_ESCAPE = Quit KEY_UP = GoUp KEY_DOWN = GoDown KEY_LEFT = GoLeft KEY_RIGHT = GoRight </code>
en/examples/input/keyboard_input.txt
ยท Last modified: 2025/09/30 17:26 (14 months ago) by
127.0.0.1
Page Tools
Show page
Old revisions
Backlinks
Export to PDF
Rename Page
Back to top