FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
TF2-Source-Code/tf2_src/public/vgui/keyrepeat.h at master · sr2echa/TF2-Source-Code · GitHub
sr2echa
TF2-Source-Code
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
TF2-Source-Code
/
tf2_src
/
public
/
vgui
/
keyrepeat.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
47 lines (37 loc) · 874 Bytes
Breadcrumbs
TF2-Source-Code
/
tf2_src
/
public
/
vgui
/
keyrepeat.h
Copy path
File metadata and controls
47 lines (37 loc) · 874 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//
========= Copyright Valve Corporation, All rights reserved. ============//
//
//
Purpose:
//
//
=============================================================================
#
ifndef
KEYREPEAT_H
#
define
KEYREPEAT_H
#
ifdef
_WIN32
#
pragma
once
#
endif
namespace
vgui
{
enum
KEYREPEAT_ALIASES
{
KR_ALIAS_UP
,
KR_ALIAS_DOWN
,
KR_ALIAS_LEFT
,
KR_ALIAS_RIGHT
,
FM_NUM_KEYREPEAT_ALIASES
,
};
class
CKeyRepeatHandler
{
public:
CKeyRepeatHandler
();
void
Reset
();
void
KeyDown
( vgui::KeyCode code );
void
KeyUp
( vgui::KeyCode code );
vgui::KeyCode
KeyRepeated
();
void
SetKeyRepeatTime
( vgui::KeyCode code,
float
flRepeat );
private:
bool
m_bAliasDown[
MAX_JOYSTICKS
][
FM_NUM_KEYREPEAT_ALIASES
];
float
m_flRepeatTimes[
FM_NUM_KEYREPEAT_ALIASES
];
float
m_flNextKeyRepeat[
MAX_JOYSTICKS
];
bool
m_bHaveKeyDown;
};
}
//
namespace vgui
#
endif
//
KEYREPEAT_H
Back
|
FazBrowse Home
|
New Git URL