+int wxJoystick::GetPosition(unsigned axis) const
+{
+ switch (axis) {
+ case 0:
+ return GetPosition().x;
+ case 1:
+ return GetPosition().y;
+ case 2:
+ return GetZPosition();
+ case 3:
+ return GetRudderPosition();
+ case 4:
+ return GetUPosition();
+ case 5:
+ return GetVPosition();
+ default:
+ return 0;
+ }
+}
+