User Tools

Site Tools


en:tutorials:input:testing_input_controls

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:tutorials:testing_input_controls [2018/08/27 15:17 (6 years ago)] – Note on core clocks sausageen:tutorials:input:testing_input_controls [2022/12/06 13:39 (16 months ago)] (current) iarwain
Line 5: Line 5:
 Good also for keyboard testing to get the names of keypresses which you can use in your config files. Good also for keyboard testing to get the names of keypresses which you can use in your config files.
  
-Start by creating a new [[en:tutorials:creating_your_own_project|Creating your own Orx-based Project using 'init']].+Start by creating a new [[en:tutorials:projects:creating_your_own_project|Creating your own Orx-based Project using 'init']].
  
 Open the project. We don't need an ''Object'' so remove or comment out this line from the Init() function: Open the project. We don't need an ''Object'' so remove or comment out this line from the Init() function:
Line 16: Line 16:
  
 <code c> <code c>
-orxClock_Register(orxClock_FindFirst(-1.0f, orxCLOCK_TYPE_CORE), InputCheck, orxNULL, orxMODULE_ID_MAIN, orxCLOCK_PRIORITY_NORMAL);+orxClock_Register(orxClock_Get(orxCLOCK_KZ_CORE), InputCheck, orxNULL, orxMODULE_ID_MAIN, orxCLOCK_PRIORITY_NORMAL);
 </code> </code>
  
Line 54: Line 54:
 [21:16:01] [LOG] Input: KEY_SPACE, Type: 0, ID: 71, Value 1.000000 [21:16:01] [LOG] Input: KEY_SPACE, Type: 0, ID: 71, Value 1.000000
 [21:16:01] [LOG] Input: KEY_SPACE, Type: 0, ID: 71, Value 1.000000 [21:16:01] [LOG] Input: KEY_SPACE, Type: 0, ID: 71, Value 1.000000
-[21:16:02] [LOG] Input: JOY_X_1, Type: 4, ID: 0, Value -0.447379 +[21:16:02] [LOG] Input: JOY_LX_1, Type: 4, ID: 0, Value -0.447379 
-[21:16:02] [LOG] Input: JOY_X_1, Type: 4, ID: 0, Value -0.833341+[21:16:02] [LOG] Input: JOY_LX_1, Type: 4, ID: 0, Value -0.833341
 [21:16:04] [LOG] Input: JOY_1_1, Type: 3, ID: 0, Value 1.000000 [21:16:04] [LOG] Input: JOY_1_1, Type: 3, ID: 0, Value 1.000000
 [21:16:05] [LOG] Input: JOY_1_1, Type: 3, ID: 0, Value 1.000000 [21:16:05] [LOG] Input: JOY_1_1, Type: 3, ID: 0, Value 1.000000
-[21:17:01] [LOG] Input: JOY_X_1, Type: 4, ID: 0, Value 0.300008 +[21:17:01] [LOG] Input: JOY_LX_1, Type: 4, ID: 0, Value 0.300008 
-[21:17:01] [LOG] Input: JOY_Y_1, Type: 4, ID: 1, Value -0.454551+[21:17:01] [LOG] Input: JOY_LY_1, Type: 4, ID: 1, Value -0.454551
 [21:17:02] [LOG] Input: JOY_16_1, Type: 3, ID: 15, Value 1.000000 [21:17:02] [LOG] Input: JOY_16_1, Type: 3, ID: 15, Value 1.000000
 </code> </code>
en/tutorials/input/testing_input_controls.1535408270.txt.gz · Last modified: 2018/08/27 18:17 (6 years ago) (external edit)