Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

SWIG bindings: Add get_magnetometer_vector() binding

  • Loading branch information...
commit 57403c5bbc32bc5db64ea19c29bfb935f2bd2d36 1 parent 26d0445
@thp authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 bindings/swig/psmove.i
View
8 bindings/swig/psmove.i
@@ -130,6 +130,8 @@ void reinit();
void get_gyroscope_frame(enum PSMove_Frame frame,
float *OUTPUT, float *OUTPUT, float *OUTPUT);
+ void get_magnetometer_vector(float *OUTPUT, float *OUTPUT, float *OUTPUT);
+
void set_leds(int r, int g, int b) {
psmove_set_leds($self, r, g, b);
}
@@ -317,6 +319,12 @@ PSMove_get_gyroscope_frame(PSMove *move, enum PSMove_Frame frame,
}
void
+PSMove_get_magnetometer_vector(PSMove *move, float *x, float *y, float *z)
+{
+ psmove_get_magnetometer_vector(move, x, y, z);
+}
+
+void
PSMove_get_button_events(PSMove *move,
unsigned int *pressed, unsigned int *released)
{
Please sign in to comment.
Something went wrong with that request. Please try again.