X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=vg%2Fvg_input.h;h=6bae274d99cff79a25e39c220a6742463578eb60;hb=e00ea4ccba1891970699f9b5b78ba1ebaada2974;hp=69865427ba75c5f4ae76f1a1fd87467dd09b00e9;hpb=42fc2b14afbe5a37bdd469b9bac5f642bc50ccc4;p=fishladder.git diff --git a/vg/vg_input.h b/vg/vg_input.h index 6986542..6bae274 100644 --- a/vg/vg_input.h +++ b/vg/vg_input.h @@ -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; }