public static float[] GetJoystickAxes(Joystick joy) { int numaxes; float *axes = GlfwDelegates.glfwGetJoystickAxes(joy, out numaxes); float[] result = new float[numaxes]; for (int i = 0; i < numaxes; ++i) { result[i] = axes[i]; } return(result); }
public static int GetJoystickAxes(Joystick joy, float[] axes, int numaxes) { return(GlfwDelegates.glfwGetJoystickAxes(joy, axes, numaxes)); }