예제 #1
0
        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);
        }
예제 #2
0
 public static int GetJoystickAxes(Joystick joy, float[] axes, int numaxes)
 {
     return(GlfwDelegates.glfwGetJoystickAxes(joy, axes, numaxes));
 }