public static float[] GetJoystickAxes(int joystick, out int count) { int lenght; float *monitors = Imports.glfwGetJoystickAxes(joystick, out lenght); float[] result = new float[lenght]; for (int i = 0; i < lenght; i++) { result[i] = monitors[i]; } count = lenght; return(result); }