Difference between revisions of "Modules/input/Settings"
From MSX Game Library
(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...") |
|||
Line 8: | Line 8: | ||
#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_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 | #define INPUT_JOY_UPDATE FALSE // Add function to update all joystick states at once | ||
− | |||
// Key update handler | // Key update handler | ||
#define INPUT_KB_UPDATE FALSE // Add function to update all keyboard rows at once | #define INPUT_KB_UPDATE FALSE // Add function to update all keyboard rows at once |
Latest revision as of 22:01, 7 January 2024
Library configuration (msxgl_config.h):
// 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)