Difference between revisions of "Modules/input/Usage"

From MSX Game Library

< Modules‎ | input

(Created page with "Library configuration (<tt>msxgl_config.h</tt>): <syntaxhighlight lang="c"> // Input module setting #define INPUT_USE_JOYSTICK TRUE // Add functions to handle joystick using...")
 
(Blanked the page)
Line 1: Line 1:
Library configuration (<tt>msxgl_config.h</tt>):
 
<syntaxhighlight lang="c">
 
// Input module setting
 
#define INPUT_USE_JOYSTICK TRUE // Add functions to handle joystick using I/O port
 
#define INPUT_USE_KEYBOARD TRUE // Add functions to handle keyboard using I/O port
 
#define INPUT_USE_MOUSE TRUE // Add support for Mouse handling functions
 
#define INPUT_USE_DETECT TRUE // Add feature to detect device plugged in General purpose ports
 
#define INPUT_USE_ISR_PROTECTION TRUE // Disable interruptions while access PSG registers (needed if you use BIOS or access PSG in your own ISR)
 
#define INPUT_JOY_UPDATE FALSE // Add function to update all joystick states at once
 
  
// Key update handler
 
#define INPUT_KB_UPDATE FALSE // Add function to update all keyboard rows at once
 
#define INPUT_KB_UPDATE_MIN 0 // First row to update
 
#define INPUT_KB_UPDATE_MAX 8 // Last row to update (10 for numerical-pad, 8 otherwise)
 
</syntaxhighlight>
 

Revision as of 21:52, 7 January 2024