Blame toonz/sources/include/tw/keycodes.h
|
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 |
|
|
Toshihiro Shimizu |
890ddd |
namespace TwConsts
|
|
Toshihiro Shimizu |
890ddd |
{
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
enum {
|
|
Toshihiro Shimizu |
890ddd |
TK_Backspace = 8,
|
|
Toshihiro Shimizu |
890ddd |
TK_Return = 13,
|
|
Toshihiro Shimizu |
890ddd |
TK_LeftArrow = 1018,
|
|
Toshihiro Shimizu |
890ddd |
TK_RightArrow = 1019,
|
|
Toshihiro Shimizu |
890ddd |
TK_UpArrow = 1020,
|
|
Toshihiro Shimizu |
890ddd |
TK_DownArrow = 1021,
|
|
Toshihiro Shimizu |
890ddd |
TK_ShiftLeftArrow,
|
|
Toshihiro Shimizu |
890ddd |
TK_ShiftRightArrow,
|
|
Toshihiro Shimizu |
890ddd |
TK_ShiftUpArrow,
|
|
Toshihiro Shimizu |
890ddd |
TK_ShiftDownArrow,
|
|
Toshihiro Shimizu |
890ddd |
TK_Home = 22,
|
|
Toshihiro Shimizu |
890ddd |
TK_End = 23,
|
|
Toshihiro Shimizu |
890ddd |
TK_PageUp = 24,
|
|
Toshihiro Shimizu |
890ddd |
TK_PageDown = 25,
|
|
Toshihiro Shimizu |
890ddd |
TK_Esc = 27,
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
TK_Delete = -22,
|
|
Toshihiro Shimizu |
890ddd |
TK_Insert = -23,
|
|
Toshihiro Shimizu |
890ddd |
TK_CapsLock = 1022,
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
TK_F1 = -200,
|
|
Toshihiro Shimizu |
890ddd |
TK_F2,
|
|
Toshihiro Shimizu |
890ddd |
TK_F3,
|
|
Toshihiro Shimizu |
890ddd |
TK_F4,
|
|
Toshihiro Shimizu |
890ddd |
TK_F5,
|
|
Toshihiro Shimizu |
890ddd |
TK_F6,
|
|
Toshihiro Shimizu |
890ddd |
TK_F7,
|
|
Toshihiro Shimizu |
890ddd |
TK_F8,
|
|
Toshihiro Shimizu |
890ddd |
TK_F9,
|
|
Toshihiro Shimizu |
890ddd |
TK_F10,
|
|
Toshihiro Shimizu |
890ddd |
TK_F11,
|
|
Toshihiro Shimizu |
890ddd |
TK_F12
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
};
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
enum {
|
|
Toshihiro Shimizu |
890ddd |
TK_ShiftPressed = 0x1,
|
|
Toshihiro Shimizu |
890ddd |
TK_CtrlPressed = 0x2,
|
|
Toshihiro Shimizu |
890ddd |
TK_AltPressed = 0x3
|
|
Toshihiro Shimizu |
890ddd |
};
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
} // namespace
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
3bfa54 |
DVAPI std::string getKeyName(int key, unsigned long flags);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#endif
|