CommonLibSSE NG
Loading...
Searching...
No Matches
InputMap.h
Go to the documentation of this file.
1
#pragma once
2
3
namespace
SKSE
4
{
5
namespace
InputMap
6
{
7
enum
8
{
9
// first 256 for keyboard, then 8 mouse buttons, then mouse wheel up, wheel down, then 16 gamepad buttons
10
kMacro_KeyboardOffset
= 0,
// not actually used, just for self-documentation
11
kMacro_NumKeyboardKeys
= 256,
12
13
kMacro_MouseButtonOffset
=
kMacro_NumKeyboardKeys
,
// 256
14
kMacro_NumMouseButtons
= 8,
15
16
kMacro_MouseWheelOffset
=
kMacro_MouseButtonOffset
+
kMacro_NumMouseButtons
,
// 264
17
kMacro_MouseWheelDirections
= 2,
18
19
kMacro_GamepadOffset
=
kMacro_MouseWheelOffset
+
kMacro_MouseWheelDirections
,
// 266
20
kMacro_NumGamepadButtons
= 16,
21
22
kMaxMacros
=
kMacro_GamepadOffset
+
kMacro_NumGamepadButtons
// 282
23
};
24
25
enum
26
{
27
kGamepadButtonOffset_DPAD_UP
=
kMacro_GamepadOffset
,
// 266
28
kGamepadButtonOffset_DPAD_DOWN
,
29
kGamepadButtonOffset_DPAD_LEFT
,
30
kGamepadButtonOffset_DPAD_RIGHT
,
31
kGamepadButtonOffset_START
,
32
kGamepadButtonOffset_BACK
,
33
kGamepadButtonOffset_LEFT_THUMB
,
34
kGamepadButtonOffset_RIGHT_THUMB
,
35
kGamepadButtonOffset_LEFT_SHOULDER
,
36
kGamepadButtonOffset_RIGHT_SHOULDER
,
37
kGamepadButtonOffset_A
,
38
kGamepadButtonOffset_B
,
39
kGamepadButtonOffset_X
,
40
kGamepadButtonOffset_Y
,
41
kGamepadButtonOffset_LT
,
42
kGamepadButtonOffset_RT
// 281
43
};
44
45
std::uint32_t
GamepadMaskToKeycode
(std::uint32_t keyMask);
46
std::uint32_t
GamepadKeycodeToMask
(std::uint32_t keyCode);
47
48
std::string
GetKeyName
(std::uint32_t keyCode);
49
std::string
GetKeyboardKeyName
(std::uint32_t keyCode);
50
std::string
GetMouseButtonName
(std::uint32_t keyCode);
51
std::string
GetGamepadButtonName
(std::uint32_t a_keyCode);
52
}
53
}
SKSE::InputMap::GetGamepadButtonName
std::string GetGamepadButtonName(std::uint32_t a_keyCode)
SKSE::InputMap::GamepadMaskToKeycode
std::uint32_t GamepadMaskToKeycode(std::uint32_t keyMask)
SKSE::InputMap::GetKeyboardKeyName
std::string GetKeyboardKeyName(std::uint32_t keyCode)
SKSE::InputMap::GetMouseButtonName
std::string GetMouseButtonName(std::uint32_t keyCode)
SKSE::InputMap::GetKeyName
std::string GetKeyName(std::uint32_t keyCode)
SKSE::InputMap::GamepadKeycodeToMask
std::uint32_t GamepadKeycodeToMask(std::uint32_t keyCode)
SKSE::InputMap::kGamepadButtonOffset_Y
@ kGamepadButtonOffset_Y
Definition
InputMap.h:40
SKSE::InputMap::kGamepadButtonOffset_RIGHT_SHOULDER
@ kGamepadButtonOffset_RIGHT_SHOULDER
Definition
InputMap.h:36
SKSE::InputMap::kGamepadButtonOffset_RT
@ kGamepadButtonOffset_RT
Definition
InputMap.h:42
SKSE::InputMap::kGamepadButtonOffset_A
@ kGamepadButtonOffset_A
Definition
InputMap.h:37
SKSE::InputMap::kGamepadButtonOffset_DPAD_DOWN
@ kGamepadButtonOffset_DPAD_DOWN
Definition
InputMap.h:28
SKSE::InputMap::kGamepadButtonOffset_LEFT_THUMB
@ kGamepadButtonOffset_LEFT_THUMB
Definition
InputMap.h:33
SKSE::InputMap::kGamepadButtonOffset_B
@ kGamepadButtonOffset_B
Definition
InputMap.h:38
SKSE::InputMap::kGamepadButtonOffset_BACK
@ kGamepadButtonOffset_BACK
Definition
InputMap.h:32
SKSE::InputMap::kGamepadButtonOffset_RIGHT_THUMB
@ kGamepadButtonOffset_RIGHT_THUMB
Definition
InputMap.h:34
SKSE::InputMap::kGamepadButtonOffset_X
@ kGamepadButtonOffset_X
Definition
InputMap.h:39
SKSE::InputMap::kGamepadButtonOffset_DPAD_LEFT
@ kGamepadButtonOffset_DPAD_LEFT
Definition
InputMap.h:29
SKSE::InputMap::kGamepadButtonOffset_DPAD_RIGHT
@ kGamepadButtonOffset_DPAD_RIGHT
Definition
InputMap.h:30
SKSE::InputMap::kGamepadButtonOffset_LEFT_SHOULDER
@ kGamepadButtonOffset_LEFT_SHOULDER
Definition
InputMap.h:35
SKSE::InputMap::kGamepadButtonOffset_LT
@ kGamepadButtonOffset_LT
Definition
InputMap.h:41
SKSE::InputMap::kGamepadButtonOffset_DPAD_UP
@ kGamepadButtonOffset_DPAD_UP
Definition
InputMap.h:27
SKSE::InputMap::kGamepadButtonOffset_START
@ kGamepadButtonOffset_START
Definition
InputMap.h:31
SKSE::InputMap::kMacro_MouseButtonOffset
@ kMacro_MouseButtonOffset
Definition
InputMap.h:13
SKSE::InputMap::kMacro_MouseWheelDirections
@ kMacro_MouseWheelDirections
Definition
InputMap.h:17
SKSE::InputMap::kMacro_GamepadOffset
@ kMacro_GamepadOffset
Definition
InputMap.h:19
SKSE::InputMap::kMacro_NumKeyboardKeys
@ kMacro_NumKeyboardKeys
Definition
InputMap.h:11
SKSE::InputMap::kMacro_NumGamepadButtons
@ kMacro_NumGamepadButtons
Definition
InputMap.h:20
SKSE::InputMap::kMacro_KeyboardOffset
@ kMacro_KeyboardOffset
Definition
InputMap.h:10
SKSE::InputMap::kMacro_MouseWheelOffset
@ kMacro_MouseWheelOffset
Definition
InputMap.h:16
SKSE::InputMap::kMaxMacros
@ kMaxMacros
Definition
InputMap.h:22
SKSE::InputMap::kMacro_NumMouseButtons
@ kMacro_NumMouseButtons
Definition
InputMap.h:14
SKSE
Definition
API.h:14
CommonLibSSE-NG
include
SKSE
InputMap.h
Generated by
1.9.7