CommonLibSSE (Parapets fork)
Loading...
Searching...
No Matches
InputMap.h
Go to the documentation of this file.
1#pragma once
2
3namespace 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
12
15
18
21
23 };
24
25 enum
26 {
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 keyCode);
52 }
53}
std::uint32_t GamepadMaskToKeycode(std::uint32_t keyMask)
std::string GetKeyboardKeyName(std::uint32_t keyCode)
std::string GetMouseButtonName(std::uint32_t keyCode)
std::string GetGamepadButtonName(std::uint32_t keyCode)
std::string GetKeyName(std::uint32_t keyCode)
std::uint32_t GamepadKeycodeToMask(std::uint32_t keyCode)
@ kGamepadButtonOffset_Y
Definition: InputMap.h:40
@ kGamepadButtonOffset_RIGHT_SHOULDER
Definition: InputMap.h:36
@ kGamepadButtonOffset_RT
Definition: InputMap.h:42
@ kGamepadButtonOffset_A
Definition: InputMap.h:37
@ kGamepadButtonOffset_DPAD_DOWN
Definition: InputMap.h:28
@ kGamepadButtonOffset_LEFT_THUMB
Definition: InputMap.h:33
@ kGamepadButtonOffset_B
Definition: InputMap.h:38
@ kGamepadButtonOffset_BACK
Definition: InputMap.h:32
@ kGamepadButtonOffset_RIGHT_THUMB
Definition: InputMap.h:34
@ kGamepadButtonOffset_X
Definition: InputMap.h:39
@ kGamepadButtonOffset_DPAD_LEFT
Definition: InputMap.h:29
@ kGamepadButtonOffset_DPAD_RIGHT
Definition: InputMap.h:30
@ kGamepadButtonOffset_LEFT_SHOULDER
Definition: InputMap.h:35
@ kGamepadButtonOffset_LT
Definition: InputMap.h:41
@ kGamepadButtonOffset_DPAD_UP
Definition: InputMap.h:27
@ kGamepadButtonOffset_START
Definition: InputMap.h:31
@ kMacro_MouseButtonOffset
Definition: InputMap.h:13
@ kMacro_MouseWheelDirections
Definition: InputMap.h:17
@ kMacro_GamepadOffset
Definition: InputMap.h:19
@ kMacro_NumKeyboardKeys
Definition: InputMap.h:11
@ kMacro_NumGamepadButtons
Definition: InputMap.h:20
@ kMacro_KeyboardOffset
Definition: InputMap.h:10
@ kMacro_MouseWheelOffset
Definition: InputMap.h:16
@ kMaxMacros
Definition: InputMap.h:22
@ kMacro_NumMouseButtons
Definition: InputMap.h:14
Definition: API.h:14