#1
22 июля 2008 в 14:58
инсталльнул сегодня timeshift для заценки. встал нормально, все робит, только игра вылетает при попытке изменить управление через меню. решил править ручками, залез в controls.ini. а там бинды вот такого вида:<br /><br />
MOVE_FORWARD = " { 0x11 } { 0x48 } { } { } { }"<br /> MOVE_BACKWARD = " { 0x1F } { 0x4C } { } { } { }"<br /> LOOK_UP = " { 0xC9 } { } { 0x12E } { } { }"<br /><br />кто-нибудь может дать список клавиш и их обозначений?
#2
23 июля 2008 в 06:21
Похоже на клавиатурные скан-коды DirectX<br /><br />0x11 = W<br />0x48 = NUMPAD8<br />0x1F = S<br />итд.<br /><br />Полная таблица кодов:<br />
<br />#ifndef H_DIK<br />#define H_DIK<br /><br />// Listed are keyboard scan code constants, taken from dinput.h <br /><br />#define DIK_ESCAPE 0x01<br />#define DIK_1 0x02<br />#define DIK_2 0x03<br />#define DIK_3 0x04<br />#define DIK_4 0x05<br />#define DIK_5 0x06<br />#define DIK_6 0x07<br />#define DIK_7 0x08<br />#define DIK_8 0x09<br />#define DIK_9 0x0A<br />#define DIK_0 0x0B<br />#define DIK_MINUS 0x0C /* - on main keyboard */<br />#define DIK_EQUALS 0x0D<br />#define DIK_BACK 0x0E /* backspace */<br />#define DIK_TAB 0x0F<br />#define DIK_Q 0x10<br />#define DIK_W 0x11<br />#define DIK_E 0x12<br />#define DIK_R 0x13<br />#define DIK_T 0x14<br />#define DIK_Y 0x15<br />#define DIK_U 0x16<br />#define DIK_I 0x17<br />#define DIK_O 0x18<br />#define DIK_P 0x19<br />#define DIK_LBRACKET 0x1A<br />#define DIK_RBRACKET 0x1B<br />#define DIK_RETURN 0x1C /* Enter on main keyboard */<br />#define DIK_LCONTROL 0x1D<br />#define DIK_A 0x1E<br />#define DIK_S 0x1F<br />#define DIK_D 0x20<br />#define DIK_F 0x21<br />#define DIK_G 0x22<br />#define DIK_H 0x23<br />#define DIK_J 0x24<br />#define DIK_K 0x25<br />#define DIK_L 0x26<br />#define DIK_SEMICOLON 0x27<br />#define DIK_APOSTROPHE 0x28<br />#define DIK_GRAVE 0x29 /* accent grave */<br />#define DIK_LSHIFT 0x2A<br />#define DIK_BACKSLASH 0x2B<br />#define DIK_Z 0x2C<br />#define DIK_X 0x2D<br />#define DIK_C 0x2E<br />#define DIK_V 0x2F<br />#define DIK_B 0x30<br />#define DIK_N 0x31<br />#define DIK_M 0x32<br />#define DIK_COMMA 0x33<br />#define DIK_PERIOD 0x34 /* . on main keyboard */<br />#define DIK_SLASH 0x35 /* / on main keyboard */<br />#define DIK_RSHIFT 0x36<br />#define DIK_MULTIPLY 0x37 /* * on numeric keypad */<br />#define DIK_LMENU 0x38 /* left Alt */<br />#define DIK_SPACE 0x39<br />#define DIK_CAPITAL 0x3A<br />#define DIK_F1 0x3B<br />#define DIK_F2 0x3C<br />#define DIK_F3 0x3D<br />#define DIK_F4 0x3E<br />#define DIK_F5 0x3F<br />#define DIK_F6 0x40<br />#define DIK_F7 0x41<br />#define DIK_F8 0x42<br />#define DIK_F9 0x43<br />#define DIK_F10 0x44<br />#define DIK_NUMLOCK 0x45<br />#define DIK_SCROLL 0x46 /* Scroll Lock */<br />#define DIK_NUMPAD7 0x47<br />#define DIK_NUMPAD8 0x48<br />#define DIK_NUMPAD9 0x49<br />#define DIK_SUBTRACT 0x4A /* - on numeric keypad */<br />#define DIK_NUMPAD4 0x4B<br />#define DIK_NUMPAD5 0x4C<br />#define DIK_NUMPAD6 0x4D<br />#define DIK_ADD 0x4E /* + on numeric keypad */<br />#define DIK_NUMPAD1 0x4F<br />#define DIK_NUMPAD2 0x50<br />#define DIK_NUMPAD3 0x51<br />#define DIK_NUMPAD0 0x52<br />#define DIK_DECIMAL 0x53 /* . on numeric keypad */<br />#define DIK_F11 0x57<br />#define DIK_F12 0x58<br />#define DIK_F13 0x64 /* (NEC PC98) */<br />#define DIK_F14 0x65 /* (NEC PC98) */<br />#define DIK_F15 0x66 /* (NEC PC98) */<br /><br />#define DIK_KANA 0x70 /* (Japanese keyboard) */<br />#define DIK_CONVERT 0x79 /* (Japanese keyboard) */<br />#define DIK_NOCONVERT 0x7B /* (Japanese keyboard) */<br />#define DIK_YEN 0x7D /* (Japanese keyboard) */<br />#define DIK_NUMPADEQUALS 0x8D /* = on numeric keypad (NEC PC98) */<br />#define DIK_CIRCUMFLEX 0x90 /* (Japanese keyboard) */<br />#define DIK_AT 0x91 /* (NEC PC98) */<br />#define DIK_COLON 0x92 /* (NEC PC98) */<br />#define DIK_UNDERLINE 0x93 /* (NEC PC98) */<br />#define DIK_KANJI 0x94 /* (Japanese keyboard) */<br />#define DIK_STOP 0x95 /* (NEC PC98) */<br />#define DIK_AX 0x96 /* (Japan AX) */<br />#define DIK_UNLABELED 0x97 /* (J3100) */<br />#define DIK_NUMPADENTER 0x9C /* Enter on numeric keypad */<br />#define DIK_RCONTROL 0x9D<br />#define DIK_NUMPADCOMMA 0xB3 /* , on numeric keypad (NEC PC98) */<br />#define DIK_DIVIDE 0xB5 /* / on numeric keypad */<br />#define DIK_SYSRQ 0xB7<br />#define DIK_RMENU 0xB8 /* right Alt */<br />#define DIK_HOME 0xC7 /* Home on arrow keypad */<br />#define DIK_UP 0xC8 /* UpArrow on arrow keypad */<br />#define DIK_PRIOR 0xC9 /* PgUp on arrow keypad */<br />#define DIK_LEFT 0xCB /* LeftArrow on arrow keypad */<br />#define DIK_RIGHT 0xCD /* RightArrow on arrow keypad */<br />#define DIK_END 0xCF /* End on arrow keypad */<br />#define DIK_DOWN 0xD0 /* DownArrow on arrow keypad */<br />#define DIK_NEXT 0xD1 /* PgDn on arrow keypad */<br />#define DIK_INSERT 0xD2 /* Insert on arrow keypad */<br />#define DIK_DELETE 0xD3 /* Delete on arrow keypad */<br />#define DIK_LWIN 0xDB /* Left Windows key */<br />#define DIK_RWIN 0xDC /* Right Windows key */<br />#define DIK_APPS 0xDD /* AppMenu key */<br /><br />/*<br /> * Alternate names for keys, to facilitate transition from DOS.<br /> */<br />#define DIK_BACKSPACE DIK_BACK /* backspace */<br />#define DIK_NUMPADSTAR DIK_MULTIPLY /* * on numeric keypad */<br />#define DIK_LALT DIK_LMENU /* left Alt */<br />#define DIK_CAPSLOCK DIK_CAPITAL /* CapsLock */<br />#define DIK_NUMPADMINUS DIK_SUBTRACT /* - on numeric keypad */<br />#define DIK_NUMPADPLUS DIK_ADD /* + on numeric keypad */<br />#define DIK_NUMPADPERIOD DIK_DECIMAL /* . on numeric keypad */<br />#define DIK_NUMPADSLASH DIK_DIVIDE /* / on numeric keypad */<br />#define DIK_RALT DIK_RMENU /* right Alt */<br />#define DIK_UPARROW DIK_UP /* UpArrow on arrow keypad */<br />#define DIK_PGUP DIK_PRIOR /* PgUp on arrow keypad */<br />#define DIK_LEFTARROW DIK_LEFT /* LeftArrow on arrow keypad */<br />#define DIK_RIGHTARROW DIK_RIGHT /* RightArrow on arrow keypad */<br />#define DIK_DOWNARROW DIK_DOWN /* DownArrow on arrow keypad */<br />#define DIK_PGDN DIK_NEXT /* PgDn on arrow keypad */<br /><br />#endif // H_DIK<br />