Difference between revisions of "Modules/input manager"

From MSX Game Library

< Modules

(Created page with "{{MODULE |name=input_manager |category=Gameplay |dependency1=input |dependency2= |dependency3= |sample1=s_joystk |sample1_desc=Joystick |sample2=s_keybrd |sample2_desc=Keyboar...")
 
(No difference)

Latest revision as of 13:29, 12 January 2024

input_manager

Code: input_manager.h

Category: Gameplay

Dependencies:

Samples:

The input_manager module manages advanced access to inputs. It detects different types of events (short click, long click, double-click, etc.) and associates a callback function with them.

Usage

To use this module, include "input_manager.h" in your source code, and add "input_manager" to the modules list (LibModules) in your project's configuration file (project_config.js).


Samples

See module use cases in the sample programs:

Settings

Input manager module need those two options to be set to TRUE in the input module configuration: INPUT_USE_JOYSTICK and INPUT_USE_KEYBOARD.

Dependencies

Dependency on other modules:

Documentation