Remove multi-line typedefs
This commit is contained in:
parent
250e78c3ca
commit
7ecc929011
55
src/main.h
55
src/main.h
@ -23,10 +23,11 @@ typedef unigi_type_uint8 unigi_type_event_enum;
|
|||||||
typedef unigi_type_int16 unigi_type_input_joypad_analog;
|
typedef unigi_type_int16 unigi_type_input_joypad_analog;
|
||||||
|
|
||||||
// Event
|
// Event
|
||||||
typedef struct unigi_type_event {
|
struct unigi_type_event {
|
||||||
unigi_type_event_enum id;
|
unigi_type_event_enum id;
|
||||||
void * data;
|
void * data;
|
||||||
} unigi_type_event;
|
};
|
||||||
|
typedef struct unigi_type_event unigi_type_event;
|
||||||
#define unigi_enum_event_unknown 0
|
#define unigi_enum_event_unknown 0
|
||||||
#define unigi_enum_event_none 1
|
#define unigi_enum_event_none 1
|
||||||
#define unigi_enum_event_window_exit 2
|
#define unigi_enum_event_window_exit 2
|
||||||
@ -42,59 +43,69 @@ typedef struct unigi_type_event {
|
|||||||
#include unigi_flag_platform_main_h
|
#include unigi_flag_platform_main_h
|
||||||
|
|
||||||
// Misc
|
// Misc
|
||||||
typedef struct unigi_type_event_data_unknown {
|
struct unigi_type_event_data_unknown {
|
||||||
unigi_type_bool none;
|
unigi_type_bool none;
|
||||||
} unigi_type_event_data_unknown;
|
};
|
||||||
|
typedef struct unigi_type_event_data_unknown unigi_type_event_data_unknown;
|
||||||
typedef unigi_type_event_data_unknown unigi_type_event_data_none;
|
typedef unigi_type_event_data_unknown unigi_type_event_data_none;
|
||||||
|
|
||||||
// Window
|
// Window
|
||||||
typedef unigi_type_event_data_none unigi_type_event_data_window_exit;
|
typedef unigi_type_event_data_none unigi_type_event_data_window_exit;
|
||||||
typedef struct unigi_type_event_data_window_focus {
|
struct unigi_type_event_data_window_focus {
|
||||||
unigi_type_bool focused;
|
unigi_type_bool focused;
|
||||||
} unigi_type_event_data_window_focus;
|
};
|
||||||
|
typedef struct unigi_type_event_data_window_focus unigi_type_event_data_window_focus;
|
||||||
|
|
||||||
// Input
|
// Input
|
||||||
typedef struct unigi_type_event_data_input_keyboard_button {
|
struct unigi_type_event_data_input_keyboard_button {
|
||||||
unigi_type_input_keyboard_button button;
|
unigi_type_input_keyboard_button button;
|
||||||
unigi_type_bool pressed;
|
unigi_type_bool pressed;
|
||||||
} unigi_type_event_data_input_keyboard_button;
|
};
|
||||||
|
typedef struct unigi_type_event_data_input_keyboard_button unigi_type_event_data_input_keyboard_button;
|
||||||
|
|
||||||
typedef struct unigi_type_event_data_input_mouse_button {
|
struct unigi_type_event_data_input_mouse_button {
|
||||||
unigi_type_input_mouse_button button;
|
unigi_type_input_mouse_button button;
|
||||||
unigi_type_bool pressed;
|
unigi_type_bool pressed;
|
||||||
} unigi_type_event_data_input_mouse_button;
|
};
|
||||||
|
typedef struct unigi_type_event_data_input_mouse_button unigi_type_event_data_input_mouse_button;
|
||||||
|
|
||||||
typedef struct unigi_type_event_data_input_mouse_wheel {
|
struct unigi_type_event_data_input_mouse_wheel {
|
||||||
unigi_type_int8 scroll;
|
unigi_type_int8 scroll;
|
||||||
} unigi_type_event_data_input_mouse_wheel;
|
};
|
||||||
|
typedef struct unigi_type_event_data_input_mouse_wheel unigi_type_event_data_input_mouse_wheel;
|
||||||
|
|
||||||
typedef struct unigi_type_event_data_input_mouse_move {
|
struct unigi_type_event_data_input_mouse_move {
|
||||||
unigi_type_resolution_pixel_axis x;
|
unigi_type_resolution_pixel_axis x;
|
||||||
unigi_type_resolution_pixel_axis y;
|
unigi_type_resolution_pixel_axis y;
|
||||||
} unigi_type_event_data_input_mouse_move;
|
};
|
||||||
|
typedef struct unigi_type_event_data_input_mouse_move unigi_type_event_data_input_mouse_move;
|
||||||
|
|
||||||
typedef struct unigi_type_event_data_input_joypad_button {
|
struct unigi_type_event_data_input_joypad_button {
|
||||||
unigi_type_input_mouse_button button;
|
unigi_type_input_mouse_button button;
|
||||||
unigi_type_bool pressed;
|
unigi_type_bool pressed;
|
||||||
} unigi_type_event_data_input_joypad_button;
|
};
|
||||||
|
typedef struct unigi_type_event_data_input_joypad_button unigi_type_event_data_input_joypad_button;
|
||||||
|
|
||||||
typedef struct unigi_type_event_data_input_joypad_analog {
|
struct unigi_type_event_data_input_joypad_analog {
|
||||||
unigi_type_input_joypad_button axis;
|
unigi_type_input_joypad_button axis;
|
||||||
unigi_type_input_joypad_analog analog;
|
unigi_type_input_joypad_analog analog;
|
||||||
} unigi_type_event_data_input_joypad_analog;
|
};
|
||||||
|
typedef struct unigi_type_event_data_input_joypad_analog unigi_type_event_data_input_joypad_analog;
|
||||||
|
|
||||||
// Resolution
|
// Resolution
|
||||||
typedef struct unigi_type_resolution {
|
struct unigi_type_resolution {
|
||||||
unigi_type_resolution_pixel_axis width;
|
unigi_type_resolution_pixel_axis width;
|
||||||
unigi_type_resolution_pixel_axis height;
|
unigi_type_resolution_pixel_axis height;
|
||||||
unigi_type_color_depth depth;
|
unigi_type_color_depth depth;
|
||||||
unigi_type_bool fullscreen;
|
unigi_type_bool fullscreen;
|
||||||
} unigi_type_resolution;
|
};
|
||||||
|
typedef struct unigi_type_resolution unigi_type_resolution;
|
||||||
|
|
||||||
typedef struct unigi_type_resolution_range {
|
struct unigi_type_resolution_range {
|
||||||
unigi_type_resolution * min;
|
unigi_type_resolution * min;
|
||||||
unigi_type_resolution * max;
|
unigi_type_resolution * max;
|
||||||
} unigi_type_resolution_range;
|
};
|
||||||
|
typedef struct unigi_type_resolution_range unigi_type_resolution_range;
|
||||||
|
|
||||||
unigi_type_resolution_range * unigi_status_resolutions;
|
unigi_type_resolution_range * unigi_status_resolutions;
|
||||||
unigi_type_resolution unigi_status_resolution;
|
unigi_type_resolution unigi_status_resolution;
|
||||||
|
Loading…
Reference in New Issue
Block a user