Keys should be s32, not u32
At least two reasons for this: * activeKey is treated as signed (check for sign, assign -1, etc) * the ID retrieved from Irrlicht's events are signedmaster
parent
ea26a9f543
commit
11be390110
|
@ -114,20 +114,20 @@ private:
|
||||||
gui::IGUIButton *dump;
|
gui::IGUIButton *dump;
|
||||||
gui::IGUIButton *chat;
|
gui::IGUIButton *chat;
|
||||||
|
|
||||||
u32 activeKey;
|
s32 activeKey;
|
||||||
u32 key_forward;
|
s32 key_forward;
|
||||||
u32 key_backward;
|
s32 key_backward;
|
||||||
u32 key_left;
|
s32 key_left;
|
||||||
u32 key_right;
|
s32 key_right;
|
||||||
u32 key_use;
|
s32 key_use;
|
||||||
u32 key_sneak;
|
s32 key_sneak;
|
||||||
u32 key_jump;
|
s32 key_jump;
|
||||||
u32 key_inventory;
|
s32 key_inventory;
|
||||||
u32 key_fly;
|
s32 key_fly;
|
||||||
u32 key_fast;
|
s32 key_fast;
|
||||||
u32 key_range;
|
s32 key_range;
|
||||||
u32 key_chat;
|
s32 key_chat;
|
||||||
u32 key_dump;
|
s32 key_dump;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue