mirror of
https://github.com/LostArtefacts/TRX.git
synced 2025-05-02 14:47:58 +03:00
input: use unsigned to increase portability
This commit is contained in:
parent
b2e3202311
commit
c752f7eadd
1 changed files with 28 additions and 28 deletions
|
@ -2024,35 +2024,35 @@ typedef struct PICTURE {
|
||||||
} PICTURE;
|
} PICTURE;
|
||||||
|
|
||||||
typedef union INPUT_STATE {
|
typedef union INPUT_STATE {
|
||||||
int32_t any;
|
uint32_t any;
|
||||||
struct {
|
struct {
|
||||||
int32_t forward : 1;
|
uint32_t forward : 1;
|
||||||
int32_t back : 1;
|
uint32_t back : 1;
|
||||||
int32_t left : 1;
|
uint32_t left : 1;
|
||||||
int32_t right : 1;
|
uint32_t right : 1;
|
||||||
int32_t jump : 1;
|
uint32_t jump : 1;
|
||||||
int32_t draw : 1;
|
uint32_t draw : 1;
|
||||||
int32_t action : 1;
|
uint32_t action : 1;
|
||||||
int32_t slow : 1;
|
uint32_t slow : 1;
|
||||||
int32_t option : 1;
|
uint32_t option : 1;
|
||||||
int32_t look : 1;
|
uint32_t look : 1;
|
||||||
int32_t step_left : 1;
|
uint32_t step_left : 1;
|
||||||
int32_t step_right : 1;
|
uint32_t step_right : 1;
|
||||||
int32_t roll : 1;
|
uint32_t roll : 1;
|
||||||
int32_t pause : 1;
|
uint32_t pause : 1;
|
||||||
int32_t select : 1;
|
uint32_t select : 1;
|
||||||
int32_t deselect : 1;
|
uint32_t deselect : 1;
|
||||||
int32_t save : 1;
|
uint32_t save : 1;
|
||||||
int32_t load : 1;
|
uint32_t load : 1;
|
||||||
int32_t fly_cheat : 1;
|
uint32_t fly_cheat : 1;
|
||||||
int32_t item_cheat : 1;
|
uint32_t item_cheat : 1;
|
||||||
int32_t level_skip_cheat : 1;
|
uint32_t level_skip_cheat : 1;
|
||||||
int32_t health_cheat : 1;
|
uint32_t health_cheat : 1;
|
||||||
int32_t camera_up : 1;
|
uint32_t camera_up : 1;
|
||||||
int32_t camera_down : 1;
|
uint32_t camera_down : 1;
|
||||||
int32_t camera_left : 1;
|
uint32_t camera_left : 1;
|
||||||
int32_t camera_right : 1;
|
uint32_t camera_right : 1;
|
||||||
int32_t camera_reset : 1;
|
uint32_t camera_reset : 1;
|
||||||
};
|
};
|
||||||
} INPUT_STATE;
|
} INPUT_STATE;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue