![]() |
µGFX
2.9
version 2.9
|
Sub-Module to handle physical controls that provide provide a digital value (on/off, pressed/released, 1/0, ...).
GINPUT allows it to interface toggle buttons easily to your application.
Functions | |
| GSourceHandle | ginputGetToggle (gU16 instance) |
| Create a toggle input instance. More... | |
| void | ginputInvertToggle (gU16 instance, gBool invert) |
| Can be used to invert the sense of a toggle. More... | |
| gBool | ginputGetToggleStatus (gU16 instance, GEventToggle *ptoggle) |
| Get the current toggle status. More... | |
| GSourceHandle ginputGetToggle | ( | gU16 | instance | ) |
Create a toggle input instance.
| [in] | instance | The ID of the toggle input instance (from 0 to 9999) |
Definition at line 95 of file ginput_toggle.c.
References gtimerIsActive().
| gBool ginputGetToggleStatus | ( | gU16 | instance, |
| GEventToggle * | ptoggle | ||
| ) |
Get the current toggle status.
| [in] | instance | The ID of the toggle input instance |
| [in] | ptoggle | The toggle event struct |
Definition at line 132 of file ginput_toggle.c.
References gfxSleepMilliseconds().
| void ginputInvertToggle | ( | gU16 | instance, |
| gBool | invert | ||
| ) |
Can be used to invert the sense of a toggle.
| [in] | instance | The ID of the toggle input instance |
| [in] | invert | If gTrue, will be inverted |
Definition at line 113 of file ginput_toggle.c.