diff options
author | Tectu <joel@unormal.org> | 2012-12-02 03:05:21 -0800 |
---|---|---|
committer | Tectu <joel@unormal.org> | 2012-12-02 03:05:21 -0800 |
commit | 24e75d96e14a668ead91797bc7cb4e7d3097b3ea (patch) | |
tree | c15ea2d56eb73f3664680ea045f7146d9ba19d2b /include/gwin | |
parent | ef13b27a790568338f3784e13c9e4a125c16222f (diff) | |
parent | 74e94d39b9b66adeaf8bcbb8789d79110102bb15 (diff) | |
download | uGFX-24e75d96e14a668ead91797bc7cb4e7d3097b3ea.tar.gz uGFX-24e75d96e14a668ead91797bc7cb4e7d3097b3ea.tar.bz2 uGFX-24e75d96e14a668ead91797bc7cb4e7d3097b3ea.zip |
Merge pull request #25 from inmarket/master
Bug fixes + new driver + extend touch demo
Diffstat (limited to 'include/gwin')
-rw-r--r-- | include/gwin/gwin_button.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/gwin/gwin_button.h b/include/gwin/gwin_button.h index 69a2474c..e95628e4 100644 --- a/include/gwin/gwin_button.h +++ b/include/gwin/gwin_button.h @@ -129,8 +129,15 @@ extern "C" { // Get the source handle so the application can listen for events
#define gwinGetButtonSource(gh) ((GSourceHandle)(gh))
- // Attach a source to this button. Sources recognised: Mouse, Touch and Toggle - others are ignored (returns false).
- bool_t gwinAttachButtonSource(GHandle gh, GSourceHandle gsh, GEventType type);
+ #if defined(GINPUT_NEED_MOUSE) && GINPUT_NEED_MOUSE
+ // Attach a mouse source to this button.
+ bool_t gwinAttachButtonMouseSource(GHandle gh, GSourceHandle gsh);
+ #endif
+
+ #if defined(GINPUT_NEED_TOGGLE) && GINPUT_NEED_TOGGLE
+ // Attach a toggle source to this button.
+ bool_t gwinAttachButtonToggleSource(GHandle gh, GSourceHandle gsh);
+ #endif
#ifdef __cplusplus
}
|