mirror of
https://github.com/libretro/RetroArch
synced 2025-04-17 11:43:00 +00:00
Rearrange some struct members
This commit is contained in:
parent
23527a82ca
commit
ac14f8bb2a
@ -48,12 +48,12 @@ struct input_mapper
|
||||
{
|
||||
/* The controller port that will be polled*/
|
||||
uint8_t port;
|
||||
/* This is a bitmask of (1 << key_bind_id). */
|
||||
uint64_t buttons;
|
||||
/* Left X, Left Y, Right X, Right Y */
|
||||
int16_t analog[4];
|
||||
/* the whole keyboard state */
|
||||
uint32_t keys[RETROK_LAST / 32 + 1];
|
||||
/* This is a bitmask of (1 << key_bind_id). */
|
||||
uint64_t buttons;
|
||||
};
|
||||
|
||||
static input_mapper_t *mapper_ptr;
|
||||
@ -63,11 +63,11 @@ input_mapper_t *input_mapper_new(uint16_t port)
|
||||
settings_t *settings = config_get_ptr();
|
||||
input_mapper_t* handle = (input_mapper_t*)
|
||||
calloc(1, sizeof(*handle));
|
||||
|
||||
if (!handle)
|
||||
return NULL;
|
||||
|
||||
handle->port = port;
|
||||
mapper_ptr = handle;
|
||||
mapper_ptr = handle;
|
||||
return handle;
|
||||
}
|
||||
|
||||
|
@ -39,31 +39,32 @@
|
||||
|
||||
typedef struct input_overlay_state
|
||||
{
|
||||
/* This is a bitmask of (1 << key_bind_id). */
|
||||
uint64_t buttons;
|
||||
/* Left X, Left Y, Right X, Right Y */
|
||||
int16_t analog[4];
|
||||
|
||||
uint32_t keys[RETROK_LAST / 32 + 1];
|
||||
/* This is a bitmask of (1 << key_bind_id). */
|
||||
uint64_t buttons;
|
||||
} input_overlay_state_t;
|
||||
|
||||
struct input_overlay
|
||||
{
|
||||
void *iface_data;
|
||||
const video_overlay_interface_t *iface;
|
||||
input_overlay_state_t overlay_state;
|
||||
bool enable;
|
||||
enum overlay_status state;
|
||||
|
||||
bool enable;
|
||||
bool blocked;
|
||||
bool alive;
|
||||
|
||||
struct overlay *overlays;
|
||||
const struct overlay *active;
|
||||
unsigned next_index;
|
||||
|
||||
size_t index;
|
||||
size_t size;
|
||||
|
||||
unsigned next_index;
|
||||
enum overlay_status state;
|
||||
struct overlay *overlays;
|
||||
const struct overlay *active;
|
||||
void *iface_data;
|
||||
const video_overlay_interface_t *iface;
|
||||
|
||||
input_overlay_state_t overlay_state;
|
||||
};
|
||||
|
||||
input_overlay_t *overlay_ptr = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user