aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@seriouslyembedded.com>2015-10-30 11:49:53 +0100
committerJoel Bodenmann <joel@seriouslyembedded.com>2015-10-30 11:49:53 +0100
commit1c7948b9267ae684ef602cbca9d5675d0b0a6281 (patch)
tree060d8ab315339eed3b70abd8ba555626bdf01470 /demos
parentfcd6318153c1533e41058dec79172f3af9acbf6e (diff)
downloaduGFX-1c7948b9267ae684ef602cbca9d5675d0b0a6281.tar.gz
uGFX-1c7948b9267ae684ef602cbca9d5675d0b0a6281.tar.bz2
uGFX-1c7948b9267ae684ef602cbca9d5675d0b0a6281.zip
Fixing demos
Diffstat (limited to 'demos')
-rw-r--r--demos/applications/notepad/main.c2
-rw-r--r--demos/tools/uGFXnetDisplay/main.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/demos/applications/notepad/main.c b/demos/applications/notepad/main.c
index fb10e86b..16120edd 100644
--- a/demos/applications/notepad/main.c
+++ b/demos/applications/notepad/main.c
@@ -84,7 +84,7 @@ int main(void) {
while (TRUE) {
ginputGetMouseStatus(0, &ev);
- if (!(ev.current_buttons & GINPUT_MOUSE_BTN_LEFT))
+ if (!(ev.buttons & GINPUT_MOUSE_BTN_LEFT))
continue;
/* inside color box ? */
diff --git a/demos/tools/uGFXnetDisplay/main.c b/demos/tools/uGFXnetDisplay/main.c
index 47274a31..d8a2976d 100644
--- a/demos/tools/uGFXnetDisplay/main.c
+++ b/demos/tools/uGFXnetDisplay/main.c
@@ -203,7 +203,7 @@ static bool_t sendpkt(uint16_t *pkt, int len) {
continue;
// Nothing to do if the mouse data has not changed
- if (lx == pem->x && ly == pem->y && lbuttons == pem->current_buttons)
+ if (lx == pem->x && ly == pem->y && lbuttons == pem->buttons)
continue;
// Transfer mouse data that has changed
@@ -220,7 +220,7 @@ static bool_t sendpkt(uint16_t *pkt, int len) {
sendpkt(cmd, 2);
}
// We always send the buttons as it also acts as a mouse sync signal
- lbuttons = pem->current_buttons;
+ lbuttons = pem->buttons;
cmd[0] = GNETCODE_MOUSE_B;
cmd[1] = lbuttons;
sendpkt(cmd, 2);