Lines Matching refs:joy
127 static void joystick_callback(int joy, int event) in joystick_callback() argument
133 glfwGetJoystickAxes(joy, &axis_count); in joystick_callback()
134 glfwGetJoystickButtons(joy, &button_count); in joystick_callback()
137 joy + 1, in joystick_callback()
138 glfwGetJoystickName(joy), in joystick_callback()
142 joysticks[joystick_count++] = joy; in joystick_callback()
150 if (joysticks[i] == joy) in joystick_callback()
157 printf("Lost joystick %i\n", joy + 1); in joystick_callback()
164 int joy; in find_joysticks() local
166 for (joy = GLFW_JOYSTICK_1; joy <= GLFW_JOYSTICK_LAST; joy++) in find_joysticks()
168 if (glfwJoystickPresent(joy)) in find_joysticks()
169 joystick_callback(joy, GLFW_CONNECTED); in find_joysticks()