X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=vg%2Fvg_input.h;h=6bae274d99cff79a25e39c220a6742463578eb60;hb=638d6ecd580b58ee2fc35d24e8af46b28fd9d675;hp=69865427ba75c5f4ae76f1a1fd87467dd09b00e9;hpb=499bcabb125cdf2618a6be89ccade08b007254f3;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; }