replace VG_STATIC -> static
[vg.git] / vg_input.h
index ecf2432a98cb05ff8ca30053d5e0414a416515bd..e9ae65b1971c9d714e174e19e1a7bc0b1552f9b2 100644 (file)
@@ -7,7 +7,7 @@
 
 #define VG_MAX_CONTROLLERS 4
 
-VG_STATIC float controller_deadzone = 0.05f;
+static float controller_deadzone = 0.05f;
 
 struct{
    const u8 *sdl_keys;
@@ -35,7 +35,7 @@ struct{
 }
 static vg_input = { .active_controller_index = -2 };
 
-VG_STATIC u8 vg_getkey( SDL_Keycode kc )
+static u8 vg_getkey( SDL_Keycode kc )
 {
    SDL_Scancode sc = SDL_GetScancodeFromKey( kc );
    return vg_input.sdl_keys[sc];
@@ -44,7 +44,7 @@ VG_STATIC u8 vg_getkey( SDL_Keycode kc )
 /*
  * takes SDL device index, and tries to open that on any free channel
  */
-VG_STATIC int vg_open_gamecontroller( Sint32 index )
+static int vg_open_gamecontroller( Sint32 index )
 {
    struct vg_controller *controller = NULL;
    int vg_id = 0;
@@ -113,7 +113,7 @@ VG_STATIC int vg_open_gamecontroller( Sint32 index )
    }
 }
 
-VG_STATIC void vg_input_device_event( SDL_Event *ev )
+static void vg_input_device_event( SDL_Event *ev )
 {
    if( ev->type == SDL_CONTROLLERDEVICEADDED ){
       int is_controller = SDL_IsGameController( ev->cdevice.which );
@@ -154,7 +154,7 @@ VG_STATIC void vg_input_device_event( SDL_Event *ev )
    }
 }
 
-VG_STATIC void vg_input_controller_event( SDL_Event *ev )
+static void vg_input_controller_event( SDL_Event *ev )
 {
    if( ev->type == SDL_CONTROLLERAXISMOTION ){
       for( int i=0; i<VG_MAX_CONTROLLERS; i++ ){
@@ -230,7 +230,7 @@ VG_STATIC void vg_input_controller_event( SDL_Event *ev )
    }
 }
 
-VG_STATIC void vg_process_inputs(void)
+static void vg_process_inputs(void)
 {
    int count;
    vg_input.sdl_keys = SDL_GetKeyboardState( &count );
@@ -256,7 +256,7 @@ VG_STATIC void vg_process_inputs(void)
    }
 }
 
-VG_STATIC void async_vg_input_init( void *payload, u32 size )
+static void async_vg_input_init( void *payload, u32 size )
 {
    VG_VAR_F32( controller_deadzone, flags=VG_VAR_PERSISTENT );
 
@@ -276,12 +276,12 @@ VG_STATIC void async_vg_input_init( void *payload, u32 size )
    }
 }
 
-VG_STATIC void vg_input_init(void)
+static void vg_input_init(void)
 {
    vg_async_call( async_vg_input_init, NULL, 0 );
 }
 
-VG_STATIC void vg_input_free(void)
+static void vg_input_free(void)
 {
    for( int i=0; i<VG_MAX_CONTROLLERS; i++ ){
       struct vg_controller *controller = &vg_input.controllers[i];