Difference between revisions of "Modules/input/Settings"
From MSX Game Library
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 | ||
+ | #define INPUT_HOLD_SIGNAL FALSE // Determines whether functions that modify signals should keep the state of those they don't need to modify (which slows functions down a bit) | ||
// 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 00:01, 23 September 2025
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 #define INPUT_HOLD_SIGNAL FALSE // Determines whether functions that modify signals should keep the state of those they don't need to modify (which slows functions down a bit) // 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)