dsi2key/common/enum_keys.h
Derrick Wirth 1a41167a7d 1. Removed all WINKEY_ codes in source/windows/keyboardWindow.cpp\h and replaced with KEY::DSKEY_ codes located in common/key.h
2. Heavily changed configWindow, not finished
3. Some alterations to how enum_keys.cpp\h works
4. Added SINGLE_INPUT_SETTING udp packet
5. Some linux ifdef's
6. Probably others, this is old and should have been commited into a couple commits
2017-05-27 22:14:13 -04:00

42 lines
1.5 KiB
C++

#pragma once
#include <string>
namespace D2K {namespace KEYS {
// this represents each value in a Keys Profile array. Example: Profile[KEYS::UP] is defined as KEY_UP by default
enum
{
NAME, DESCRIPTION,
Profile, MOUSE, JOY,
_START_OF_BUTTONS_,
DUP = _START_OF_BUTTONS_, DDOWN, DLEFT, DRIGHT, A, B, X, Y, L, R, START, SELECT, LID,
ZL, ZR,
BLUE, YELLOW, RED, GREEN,
SLIDER_VOLUME, SLIDER_3D,
CSTICK_UP, CSTICK_DOWN, CSTICK_LEFT, CSTICK_RIGHT,
CPAD_UP, CPAD_DOWN, CPAD_LEFT, CPAD_RIGHT,
_END_OF_BUTTONS_ = CPAD_RIGHT,
TOUCH_00, TOUCH_01, TOUCH_02, TOUCH_03, TOUCH_04, TOUCH_05, TOUCH_06, TOUCH_07, TOUCH_08, TOUCH_09, TOUCH_10, TOUCH_11,
TOUCH_STRING_00, TOUCH_STRING_01, TOUCH_STRING_02, TOUCH_STRING_03, TOUCH_STRING_04, TOUCH_STRING_05, TOUCH_STRING_06, TOUCH_STRING_07, TOUCH_STRING_08, TOUCH_STRING_09, TOUCH_STRING_10, TOUCH_STRING_11,
TOUCH_00X, TOUCH_01X, TOUCH_02X, TOUCH_03X, TOUCH_04X, TOUCH_05X, TOUCH_06X, TOUCH_07X, TOUCH_08X, TOUCH_09X, TOUCH_10X, TOUCH_11X,
TOUCH_00Y, TOUCH_01Y, TOUCH_02Y, TOUCH_03Y, TOUCH_04Y, TOUCH_05Y, TOUCH_06Y, TOUCH_07Y, TOUCH_08Y, TOUCH_09Y, TOUCH_10Y, TOUCH_11Y,
TOUCH_00W, TOUCH_01W, TOUCH_02W, TOUCH_03W, TOUCH_04W, TOUCH_05W, TOUCH_06W, TOUCH_07W, TOUCH_08W, TOUCH_09W, TOUCH_10W, TOUCH_11W,
TOUCH_00H, TOUCH_01H, TOUCH_02H, TOUCH_03H, TOUCH_04H, TOUCH_05H, TOUCH_06H, TOUCH_07H, TOUCH_08H, TOUCH_09H, TOUCH_10H, TOUCH_11H,
END,
};
const static int KEYS_BUTTON_COUNT = KEYS::_END_OF_BUTTONS_ - KEYS::_START_OF_BUTTONS_ + 1;
std::string GetKeyName(int key);
}} // namespace D2K::Keys