reduce scope of input_overlay_add_inputs to file.

This commit is contained in:
denu8thell 2017-08-08 02:48:46 -05:00
parent 4c31d41920
commit 0df4186191
2 changed files with 11 additions and 10 deletions

View File

@ -68,6 +68,8 @@ struct input_overlay
input_overlay_t *overlay_ptr = NULL;
static bool input_overlay_add_inputs(input_overlay_t *ol,
unsigned port, unsigned analog_dpad_mode);
/**
* input_overlay_scale:
* @ol : Overlay handle.
@ -747,8 +749,15 @@ void input_state_overlay(input_overlay_t *ol, int16_t *ret,
break;
}
}
bool input_overlay_add_inputs(input_overlay_t *ol,
/**
* input_overlay_add_inputs:
* @ol : pointer to overlay
* @port : the user to show the inputs of
*
* Adds inputs from current_input to the overlay, so it's displayed
* returns true if an input that is pressed will change the overlay
*/
static bool input_overlay_add_inputs(input_overlay_t *ol,
unsigned port, unsigned analog_dpad_mode)
{
int i;

View File

@ -244,14 +244,6 @@ void input_poll_overlay(input_overlay_t *ol, float opacity, unsigned analog_dpad
void input_state_overlay(input_overlay_t *ol,
int16_t *ret, unsigned port, unsigned device, unsigned idx,
unsigned id);
/**
* input_overlay_add_inputs:
* @ol : pointer to overlay
*
* Adds inputs from current_input to the overlay, so it's displayed
* returns true if an input that is pressed will change the overlay
*/
bool input_overlay_add_inputs(input_overlay_t *ol, unsigned port, unsigned analog_dpad_mode);
bool input_overlay_key_pressed(input_overlay_t *ol, int key);