couple fix
[vg.git] / src / vg / vg_input.h
index ac2cce6e2cb4c7dcd8bbf85e829a43c6e67c450c..f7df7511b860b16c4c21ccea526ea2d94eacc0e9 100644 (file)
@@ -163,7 +163,11 @@ int get_button_cross_device( int const id )
 void vg_update_inputs(void)
 {
    if( !glfwGetGamepadState( GLFW_JOYSTICK_1, &vg.gamepad) )
+   {
       vg.gamepad_ready = 0;
+      vg.gamepad.axes[ GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER ] = -1.0f;
+      vg.gamepad.axes[ GLFW_GAMEPAD_AXIS_LEFT_TRIGGER  ] = -1.0f;
+   }
 
        /* Update button inputs */
        for( int i = 0; i < vg_list_size( vg_button_binds ); i ++ )