dsi2key/common/enum_keys.cpp
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

77 lines
1.3 KiB
C++

#include "enum_keys.h"
namespace D2K {namespace KEYS {
std::string GetKeyName(int key)
{
switch(key)
{
case KEYS::A:
return "A";
case KEYS::B:
return "B";
case KEYS::X:
return "X";
case KEYS::Y:
return "Y";
case KEYS::L:
return "L";
case KEYS::R:
return "R";
case KEYS::DUP:
return "DPad Up";
case KEYS::DDOWN:
return "DPad Down";
case KEYS::DLEFT:
return "DPad Left";
case KEYS::DRIGHT:
return "DPad Right";
case KEYS::START:
return "Start";
case KEYS::SELECT:
return "Select";
case KEYS::LID:
return "Lid";
case KEYS::SLIDER_VOLUME:
return "Volume Slider";
case KEYS::SLIDER_3D:
return "3D Slider";
case KEYS::BLUE:
return "Blue";
case KEYS::YELLOW:
return "Yellow";
case KEYS::RED:
return "Red";
case KEYS::GREEN:
return "Green";
case KEYS::ZL:
return "ZL";
case KEYS::ZR:
return "ZR";
case KEYS::CSTICK_UP:
return "CStick Up";
case KEYS::CSTICK_DOWN:
return "CStick Down";
case KEYS::CSTICK_LEFT:
return "CStick Left";
case KEYS::CSTICK_RIGHT:
return "CStick Right";
case KEYS::CPAD_UP:
return "CPad Up";
case KEYS::CPAD_DOWN:
return "CPad Down";
case KEYS::CPAD_LEFT:
return "CPad Left";
case KEYS::CPAD_RIGHT:
return "CPad Right";
}
return "ERROR";
}
}} // namespace D2K::Keys