summaryrefslogtreecommitdiff
path: root/nuttx/include/nuttx
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-11-29 13:26:26 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-11-29 13:26:26 -0600
commit2bb467f0fa91f650d2637418e5bf73f0833d4e6a (patch)
treeadbed8761eb103e68592cd6f5abd3204ffbfdc24 /nuttx/include/nuttx
parent5fe98b0395b94de6a8bbdda5bccc6e536fd200a3 (diff)
downloadnuttx-2bb467f0fa91f650d2637418e5bf73f0833d4e6a.tar.gz
nuttx-2bb467f0fa91f650d2637418e5bf73f0833d4e6a.tar.bz2
nuttx-2bb467f0fa91f650d2637418e5bf73f0833d4e6a.zip
Re-arrange the AJOYSTICK data structure so that it matches the mouse structure
Diffstat (limited to 'nuttx/include/nuttx')
-rw-r--r--nuttx/include/nuttx/input/ajoystick.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/nuttx/include/nuttx/input/ajoystick.h b/nuttx/include/nuttx/input/ajoystick.h
index 12f8ae406..af56b90e8 100644
--- a/nuttx/include/nuttx/input/ajoystick.h
+++ b/nuttx/include/nuttx/input/ajoystick.h
@@ -190,13 +190,17 @@ struct ajoy_notify_s
/* This structure is returned by read() and provides the sample state of the
* analog joystick.
+ *
+ * NOTE: that this structure is equivalent to the struct mouse_report_s
+ * structure (with no wheel) defined in include/nuttx/input/mouse.h and can
+ * be used interchangeably in certain contexts.
*/
struct ajoy_sample_s
{
+ ajoy_buttonset_t as_buttons; /* State of all buttons */
int16_t as_x; /* X/horizontal position */
int16_t as_y; /* Y/vertical position */
- ajoy_buttonset_t as_buttons; /* State of all buttons */
};
/* This is the type of the analog joystick interrupt handler used with