Browse files

SWIG: Add bindings for psmove_get_button_events()

  • Loading branch information...
1 parent 93e5bb6 commit 1108b1702dd8214519bea068afdee738afc7671b @thp committed Oct 14, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 bindings/swig/psmove.i
View
9 bindings/swig/psmove.i
@@ -175,6 +175,8 @@ void reinit();
return psmove_get_buttons($self);
}
+ void get_button_events(unsigned int *OUTPUT, unsigned int *OUTPUT);
+
int get_battery() {
return psmove_get_battery($self);
}
@@ -305,6 +307,13 @@ PSMove_get_gyroscope_frame(PSMove *move, enum PSMove_Frame frame,
psmove_get_gyroscope_frame(move, frame, x, y, z);
}
+void
+PSMove_get_button_events(PSMove *move,
+ unsigned int *pressed, unsigned int *released)
+{
+ psmove_get_button_events(move, pressed, released);
+}
+
int
PSMove_connection_type_get(PSMove *move) {
return psmove_connection_type(move);

0 comments on commit 1108b17

Please sign in to comment.