aboutsummaryrefslogtreecommitdiffstats
path: root/include/gwin/gwin_button.h
diff options
context:
space:
mode:
authorTectu <joel@unormal.org>2012-12-02 03:05:21 -0800
committerTectu <joel@unormal.org>2012-12-02 03:05:21 -0800
commit24e75d96e14a668ead91797bc7cb4e7d3097b3ea (patch)
treec15ea2d56eb73f3664680ea045f7146d9ba19d2b /include/gwin/gwin_button.h
parentef13b27a790568338f3784e13c9e4a125c16222f (diff)
parent74e94d39b9b66adeaf8bcbb8789d79110102bb15 (diff)
downloaduGFX-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/gwin_button.h')
-rw-r--r--include/gwin/gwin_button.h11
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
}