added scroll bar ui
[fishladder.git] / vg / vg_input.h
index 69865427ba75c5f4ae76f1a1fd87467dd09b00e9..6bae274d99cff79a25e39c220a6742463578eb60 100644 (file)
@@ -91,9 +91,9 @@ static inline int vg_get_button_up( const char *button )
 
 static inline int vg_get_button_state( const char *button )
 {
-       if( vg_get_button( button ) ) return 2;
        if( vg_get_button_down( button ) ) return 1;
        if( vg_get_button_up( button ) ) return 3;
+       if( vg_get_button( button ) ) return 2;
        return 0;
 }