mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2026-10-12 01:08:00 +08:00
Add in_buttons.h
This commit is contained in:
1 parent
fd0cd4b146
commit
d71baaef36
2 files changed
+36
No files matched your search
@@ -0,0 +1,32 @@
|
||||
#ifndef IN_BUTTONS_H
|
||||
#define IN_BUTTONS_H
|
||||
#ifdef _WIN32
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
enum InputBitMask_t : int64
|
||||
{
|
||||
IN_NONE = 0,
|
||||
IN_ALL = -1,
|
||||
|
||||
IN_ATTACK = (1 << 0),
|
||||
IN_JUMP = (1 << 1),
|
||||
IN_DUCK = (1 << 2),
|
||||
IN_FORWARD = (1 << 3),
|
||||
IN_BACK = (1 << 4),
|
||||
IN_USE = (1 << 5),
|
||||
IN_TURNLEFT = (1 << 7),
|
||||
IN_TURNRIGHT = (1 << 8),
|
||||
IN_MOVELEFT = (1 << 9),
|
||||
IN_MOVERIGHT = (1 << 10),
|
||||
IN_ATTACK2 = (1 << 11),
|
||||
IN_RELOAD = (1 << 13),
|
||||
IN_SPEED = (1 << 16), // Player is holding the speed key
|
||||
IN_JOYAUTOSPRINT = (1 << 17),
|
||||
|
||||
IN_FIRST_MOD_SPECIFIC_BIT = (1 << 32),
|
||||
};
|
||||
|
||||
#endif // IN_BUTTONS_H
|
||||
@@ -11,7 +11,11 @@
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
#include "platform.h"
|
||||
#include "vector.h"
|
||||
|
||||
#include "const.h"
|
||||
#include "in_buttons.h"
|
||||
|
||||
#define TICK_INTERVAL (1 / 64)
|
||||
|
||||
|
||||
Reference in new issue
Block a user