Skip to content

Commit

Permalink
Rename initialize_joysticks to platform_init_event. (#501)
Browse files Browse the repository at this point in the history
  • Loading branch information
AliceLR authored Nov 4, 2024
1 parent d139c61 commit 1fc116b
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion arch/3ds/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ int ctr_get_subscreen_height(void)
}
}

void initialize_joysticks(void)
void platform_init_event(void)
{
struct buffered_status *status = store_status();
joystick_set_active(status, 0, true);
Expand Down
2 changes: 1 addition & 1 deletion arch/djgpp/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ static void init_mouse(void)
mouse_init = true;
}

void initialize_joysticks(void)
void platform_init_event(void)
{
init_kbd();
init_mouse();
Expand Down
2 changes: 1 addition & 1 deletion arch/dreamcast/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

extern struct input_status input;

void initialize_joysticks(void)
void platform_init_event(void)
{
}

Expand Down
2 changes: 1 addition & 1 deletion arch/nds/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ enum focus_mode get_allow_focus_changes(void)
return allow_focus_changes;
}

void initialize_joysticks(void)
void platform_init_event(void)
{
struct buffered_status *status = store_status();
joystick_set_active(status, 0, true);
Expand Down
2 changes: 1 addition & 1 deletion arch/wii/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,7 @@ void __warp_mouse(int x, int y)
// Mouse warping doesn't work too well with the Wiimote
}

void initialize_joysticks(void)
void platform_init_event(void)
{
struct buffered_status *status = store_status();
int i;
Expand Down
4 changes: 2 additions & 2 deletions src/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ void init_event(struct config_info *conf)
// Write the new global bindings over the game bindings.
joystick_reset_game_map();

// Now, initialize the joysticks (platform-dependent function).
initialize_joysticks();
// Platform-specific events system initialization.
platform_init_event();
}

uint32_t convert_internal_unicode(enum keycode key, boolean caps_lock)
Expand Down
2 changes: 1 addition & 1 deletion src/event.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ boolean has_unicode_input(void);
uint32_t convert_internal_unicode(enum keycode key, boolean caps_lock);

// Implemented by "drivers" (SDL, Wii, NDS, 3DS, etc.)
void initialize_joysticks(void);
void platform_init_event(void);
boolean __update_event_status(void);
boolean __peek_exit_input(void);
void __wait_event(void);
Expand Down
2 changes: 1 addition & 1 deletion src/event_sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1664,7 +1664,7 @@ void __warp_mouse(int x, int y)
SDL_WarpMouseInWindow(window, x, y);
}

void initialize_joysticks(void)
void platform_init_event(void)
{
#if !SDL_VERSION_ATLEAST(2,0,0) || defined(CONFIG_SWITCH) || defined(CONFIG_PSVITA) \
|| defined(CONFIG_3DS)
Expand Down
2 changes: 1 addition & 1 deletion src/platform_dummy.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void platform_quit(void)
// stub
}

void initialize_joysticks(void)
void platform_init_event(void)
{
// stub
}
Expand Down

0 comments on commit 1fc116b

Please sign in to comment.