Shinya Kitaoka 810553
#pragma once
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#ifndef TW_KEYCODES_INCLUDED
Toshihiro Shimizu 890ddd
#define TW_KEYCODES_INCLUDED
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "tw/tw.h"
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#undef DVAPI
Toshihiro Shimizu 890ddd
#undef DVVAR
Toshihiro Shimizu 890ddd
#ifdef TWIN_EXPORTS
Toshihiro Shimizu 890ddd
#define DVAPI DV_EXPORT_API
Toshihiro Shimizu 890ddd
#define DVVAR DV_EXPORT_VAR
Toshihiro Shimizu 890ddd
#else
Toshihiro Shimizu 890ddd
#define DVAPI DV_IMPORT_API
Toshihiro Shimizu 890ddd
#define DVVAR DV_IMPORT_VAR
Toshihiro Shimizu 890ddd
#endif
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
namespace TwConsts {
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
enum {
Shinya Kitaoka 120a6e
  TK_Backspace  = 8,
Shinya Kitaoka 120a6e
  TK_Return     = 13,
Shinya Kitaoka 120a6e
  TK_LeftArrow  = 1018,
Shinya Kitaoka 120a6e
  TK_RightArrow = 1019,
Shinya Kitaoka 120a6e
  TK_UpArrow    = 1020,
Shinya Kitaoka 120a6e
  TK_DownArrow  = 1021,
Shinya Kitaoka 120a6e
  TK_ShiftLeftArrow,
Shinya Kitaoka 120a6e
  TK_ShiftRightArrow,
Shinya Kitaoka 120a6e
  TK_ShiftUpArrow,
Shinya Kitaoka 120a6e
  TK_ShiftDownArrow,
Shinya Kitaoka 120a6e
  TK_Home     = 22,
Shinya Kitaoka 120a6e
  TK_End      = 23,
Shinya Kitaoka 120a6e
  TK_PageUp   = 24,
Shinya Kitaoka 120a6e
  TK_PageDown = 25,
Shinya Kitaoka 120a6e
  TK_Esc      = 27,
Shinya Kitaoka 120a6e
Shinya Kitaoka 120a6e
  TK_Delete   = -22,
Shinya Kitaoka 120a6e
  TK_Insert   = -23,
Shinya Kitaoka 120a6e
  TK_CapsLock = 1022,
Shinya Kitaoka 120a6e
Shinya Kitaoka 120a6e
  TK_F1 = -200,
Shinya Kitaoka 120a6e
  TK_F2,
Shinya Kitaoka 120a6e
  TK_F3,
Shinya Kitaoka 120a6e
  TK_F4,
Shinya Kitaoka 120a6e
  TK_F5,
Shinya Kitaoka 120a6e
  TK_F6,
Shinya Kitaoka 120a6e
  TK_F7,
Shinya Kitaoka 120a6e
  TK_F8,
Shinya Kitaoka 120a6e
  TK_F9,
Shinya Kitaoka 120a6e
  TK_F10,
Shinya Kitaoka 120a6e
  TK_F11,
Shinya Kitaoka 120a6e
  TK_F12
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
enum { TK_ShiftPressed = 0x1, TK_CtrlPressed = 0x2, TK_AltPressed = 0x3 };
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
}  // namespace
Toshihiro Shimizu 890ddd
Shinya Kitaoka 3bfa54
DVAPI std::string getKeyName(int key, unsigned long flags);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#endif