struct defaults, formatting

This commit is contained in:
Katharine Chui 2025-05-13 20:15:01 +02:00
parent 1d99968ffe
commit 861b46bf83
2 changed files with 6 additions and 6 deletions

View file

@ -25,11 +25,11 @@ enum class hat_component
struct emulated_g27_device_type_id struct emulated_g27_device_type_id
{ {
// big types to keep 64bit bit shift operations sane // big types to keep 64bit bit shift operations sane
u64 product_id; u64 product_id = 0;
u64 vendor_id; u64 vendor_id = 0;
u64 num_axes; u64 num_axes = 0;
u64 num_hats; u64 num_hats = 0;
u64 num_buttons; u64 num_buttons = 0;
u64 as_u64() const u64 as_u64() const
{ {

View file

@ -537,7 +537,7 @@ static void migrate_device_type_id(emulated_g27_device_type_id& device_type_id_s
if (!joystick_ids) if (!joystick_ids)
return; return;
for (int i = 0;i < joystick_count;i++) for (int i = 0; i < joystick_count; i++)
{ {
SDL_Joystick* cur_joystick = SDL_OpenJoystick(joystick_ids[i]); SDL_Joystick* cur_joystick = SDL_OpenJoystick(joystick_ids[i]);
if (!cur_joystick) if (!cur_joystick)