mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 14:42:30 +00:00
Turn functions static
This commit is contained in:
parent
46bafd6e46
commit
4c7e316aa2
@ -973,7 +973,7 @@ int16_t input_joypad_analog_axis(
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool input_keyboard_line_append(
|
void input_keyboard_line_append(
|
||||||
struct input_keyboard_line *keyboard_line,
|
struct input_keyboard_line *keyboard_line,
|
||||||
const char *word)
|
const char *word)
|
||||||
{
|
{
|
||||||
@ -984,7 +984,7 @@ bool input_keyboard_line_append(
|
|||||||
keyboard_line->size + len * 2);
|
keyboard_line->size + len * 2);
|
||||||
|
|
||||||
if (!newbuf)
|
if (!newbuf)
|
||||||
return false;
|
return;
|
||||||
|
|
||||||
memmove(
|
memmove(
|
||||||
newbuf + keyboard_line->ptr + len,
|
newbuf + keyboard_line->ptr + len,
|
||||||
@ -1001,7 +1001,6 @@ bool input_keyboard_line_append(
|
|||||||
newbuf[keyboard_line->size] = '\0';
|
newbuf[keyboard_line->size] = '\0';
|
||||||
|
|
||||||
keyboard_line->buffer = newbuf;
|
keyboard_line->buffer = newbuf;
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const char **input_keyboard_start_line(
|
const char **input_keyboard_start_line(
|
||||||
@ -1089,7 +1088,7 @@ static input_remote_t *input_remote_new(
|
|||||||
return handle;
|
return handle;
|
||||||
}
|
}
|
||||||
|
|
||||||
void input_remote_parse_packet(
|
static void input_remote_parse_packet(
|
||||||
input_remote_state_t *input_state,
|
input_remote_state_t *input_state,
|
||||||
struct remote_message *msg, unsigned user)
|
struct remote_message *msg, unsigned user)
|
||||||
{
|
{
|
||||||
@ -1120,7 +1119,21 @@ input_remote_t *input_driver_init_remote(
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_OVERLAY
|
#ifdef HAVE_OVERLAY
|
||||||
bool input_overlay_add_inputs_inner(overlay_desc_t *desc,
|
/**
|
||||||
|
* input_overlay_add_inputs:
|
||||||
|
* @desc : pointer to overlay description
|
||||||
|
* @ol_state : pointer to overlay state. If valid, inputs
|
||||||
|
* that are actually 'touched' on the overlay
|
||||||
|
* itself will displayed. If NULL, inputs from
|
||||||
|
* the device connected to 'port' will be displayed.
|
||||||
|
* @port : when ol_state is NULL, specifies the port of
|
||||||
|
* the input device from which input will be
|
||||||
|
* displayed.
|
||||||
|
*
|
||||||
|
* Adds inputs from current_input to the overlay, so it's displayed
|
||||||
|
* @return true if an input that is pressed will change the overlay
|
||||||
|
*/
|
||||||
|
static bool input_overlay_add_inputs_inner(overlay_desc_t *desc,
|
||||||
input_overlay_state_t *ol_state, unsigned port)
|
input_overlay_state_t *ol_state, unsigned port)
|
||||||
{
|
{
|
||||||
switch(desc->type)
|
switch(desc->type)
|
||||||
@ -1223,7 +1236,7 @@ bool input_overlay_add_inputs_inner(overlay_desc_t *desc,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool input_overlay_add_inputs(input_overlay_t *ol,
|
static bool input_overlay_add_inputs(input_overlay_t *ol,
|
||||||
bool show_touched, unsigned port)
|
bool show_touched, unsigned port)
|
||||||
{
|
{
|
||||||
size_t i;
|
size_t i;
|
||||||
|
@ -907,7 +907,7 @@ int16_t input_joypad_analog_axis(
|
|||||||
unsigned ident,
|
unsigned ident,
|
||||||
const struct retro_keybind *binds);
|
const struct retro_keybind *binds);
|
||||||
|
|
||||||
bool input_keyboard_line_append(
|
void input_keyboard_line_append(
|
||||||
struct input_keyboard_line *keyboard_line,
|
struct input_keyboard_line *keyboard_line,
|
||||||
const char *word);
|
const char *word);
|
||||||
|
|
||||||
@ -930,10 +930,6 @@ const char **input_keyboard_start_line(
|
|||||||
input_keyboard_line_complete_t cb);
|
input_keyboard_line_complete_t cb);
|
||||||
|
|
||||||
#if defined(HAVE_NETWORKING) && defined(HAVE_NETWORKGAMEPAD)
|
#if defined(HAVE_NETWORKING) && defined(HAVE_NETWORKGAMEPAD)
|
||||||
void input_remote_parse_packet(
|
|
||||||
input_remote_state_t *input_state,
|
|
||||||
struct remote_message *msg, unsigned user);
|
|
||||||
|
|
||||||
input_remote_t *input_driver_init_remote(
|
input_remote_t *input_driver_init_remote(
|
||||||
settings_t *settings,
|
settings_t *settings,
|
||||||
unsigned num_active_users);
|
unsigned num_active_users);
|
||||||
|
@ -296,26 +296,6 @@ void input_overlay_free_overlay(struct overlay *overlay);
|
|||||||
|
|
||||||
void input_overlay_set_visibility(int overlay_idx,enum overlay_visibility vis);
|
void input_overlay_set_visibility(int overlay_idx,enum overlay_visibility vis);
|
||||||
|
|
||||||
/**
|
|
||||||
* input_overlay_add_inputs:
|
|
||||||
* @desc : pointer to overlay description
|
|
||||||
* @ol_state : pointer to overlay state. If valid, inputs
|
|
||||||
* that are actually 'touched' on the overlay
|
|
||||||
* itself will displayed. If NULL, inputs from
|
|
||||||
* the device connected to 'port' will be displayed.
|
|
||||||
* @port : when ol_state is NULL, specifies the port of
|
|
||||||
* the input device from which input will be
|
|
||||||
* displayed.
|
|
||||||
*
|
|
||||||
* 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_inner(overlay_desc_t *desc,
|
|
||||||
input_overlay_state_t *ol_state, unsigned port);
|
|
||||||
|
|
||||||
bool input_overlay_add_inputs(input_overlay_t *ol,
|
|
||||||
bool show_touched, unsigned port);
|
|
||||||
|
|
||||||
/* Attempts to automatically rotate the specified overlay.
|
/* Attempts to automatically rotate the specified overlay.
|
||||||
* Depends upon proper naming conventions in overlay
|
* Depends upon proper naming conventions in overlay
|
||||||
* config file. */
|
* config file. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user