25 #ifndef _GINPUT_TOGGLE_H
26 #define _GINPUT_TOGGLE_H
28 #if GINPUT_NEED_TOGGLE || defined(__DOXYGEN__)
35 #include "ginput_lld_toggle_config.h"
37 #ifndef GINPUT_TOGGLE_POLL_PERIOD
38 #define GINPUT_TOGGLE_POLL_PERIOD 200
46 #define GEVENT_TOGGLE (GEVENT_GINPUT_FIRST+3)
48 typedef struct GEventToggle_t {
55 #define GLISTEN_TOGGLE_ON 0x0001
56 #define GLISTEN_TOGGLE_OFF 0x0002
void ginputInvertToggle(gU16 instance, gBool invert)
Can be used to invert the sense of a toggle.
gBool ginputGetToggleStatus(gU16 instance, GEventToggle *ptoggle)
Get the current toggle status.
GSourceHandle ginputGetToggle(gU16 instance)
Create a toggle input instance.