Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Copyright (c) 2012 Jordan "Earlz" Earls <http://lastyearswishes.com>
- All rights reserved.
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions
- are met:
- 1. Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- 2. Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
- 3. The name of the author may not be used to endorse or promote products
- derived from this software without specific prior written permission.
- THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
- INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
- THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
- OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
- OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
- ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- const char kbdus[0x84] =
- {
- 0,
- 0, //1 F9
- 0, //2 ?
- 0, //3 f5
- 0, //4 f3
- 0, //5 F1
- 0, //6 F2
- 0, //7 F12
- 0, //8 ?
- 0, //9 F10
- 0, //A F8
- 0, //B F6
- 0, //C F4
- '\t',
- '`',
- 0, //F ?
- 0, //10 ?
- 0, //11 L alt
- 0, //L shift
- 0, //13 ?
- 0, //14 L CTRL
- 'q', '1',
- 0, 0, 0, //17-19 ?
- 'z', 's', 'a', 'w', '2',
- 0, 0, //1F-20 ?
- 'c', 'x', 'd', 'e', '4', '3',
- 0, 0, //27-28 ?
- ' ', 'v', 'f', 't', 'r', '5',
- 0, 0, //2F-30 ?
- 'n', 'b', 'h', 'g', 'y', '6',
- 0, 0, 0, //37-39 ?
- 'm','j', 'u', '7', '8',
- 0, 0, //3F-40 ?
- ',', 'k', 'i', 'o', '0', '9',
- 0, 0, //47-48 ?
- '.', '/', 'l', ';', 'p', '-',
- 0, 0, 0, //4f-51 ?
- '\'',
- 0, //53 ?
- '[', '=',
- 0, 0, //56-57 ?
- 0, //58 caplock
- 0, //59 R shift
- '\n', //5A enter
- ']',
- 0, //5C ?
- '\\',
- 0, 0, 0, 0, 0, 0, 0, 0, //5E-65 ?
- '\b', //backspace
- 0, 0, //67-68
- 0, //69 End 1
- 0, //6a ?
- '4', //6b left 4
- 0, //6c home 7
- 0, 0, 0, //6d-6f ?
- '0', //70 ins 0
- 0, //71 del .
- '2', //72 down 2
- '5', //73 5
- '6', //74 right 6
- '8', //75 up 8
- 27, //76 esc
- 0, //77 numlock
- 0, //78 f11
- '+', //79 +
- '3', //7A pagedown 3
- '-', //7B
- '*', //7C
- '9', //7D pageup 9
- '0', //7E scroll lock
- 0, 0, 0, 0, //7F-82 ?
- 0, //83 F7
- };
- const char kbdus_caps[0x84] =
- {
- 0,
- 0, //1 F9
- 0, //2 ?
- 0, //3 f5
- 0, //4 f3
- 0, //5 F1
- 0, //6 F2
- 0, //7 F12
- 0, //8 ?
- 0, //9 F10
- 0, //A F8
- 0, //B F6
- 0, //C F4
- '\t',
- '~',
- 0, //F ?
- 0, //10 ?
- 0, //11 L alt
- 0, //L shift
- 0, //13 ?
- 0, //14 L CTRL
- 'Q', '!',
- 0, 0, 0, //17-19 ?
- 'Z', 'S', 'A', 'W', '@',
- 0, 0, //1F-20 ?
- 'C', 'X', 'D', 'E', '#', '$',
- 0, 0, //27-28 ?
- ' ', 'V', 'F', 'T', 'R', '%',
- 0, 0, //2F-30 ?
- 'N', 'B', 'H', 'G', 'Y', '^',
- 0, 0, 0, //37-39 ?
- 'M','J', 'U', '&', '*',
- 0, 0, //3F-40 ?
- '<', 'K', 'I', 'O', ')', '(',
- 0, 0, //47-48 ?
- '>', '?', 'L', ':', 'P', '_',
- 0, 0, 0, //4f-51 ?
- '\"',
- 0, //53 ?
- '{', '+',
- 0, 0, //56-57 ?
- 0, //58 caplock
- 0, //59 R shift
- '\n', //5A enter
- '}',
- 0, //5C ?
- '|',
- 0, 0, 0, 0, 0, 0, 0, 0, //5E-65 ?
- '\b', //backspace
- 0, 0, //67-68
- 0, //69 End 1
- 0, //6a ?
- '4', //6b left 4
- 0, //6c home 7
- 0, 0, 0, //6d-6f ?
- '0', //70 ins 0
- 0, //71 del .
- '2', //72 down 2
- '5', //73 5
- '6', //74 right 6
- '8', //75 up 8
- 27, //76 esc
- 0, //77 numlock
- 0, //78 f11
- '+', //79 +
- '3', //7A pagedown 3
- '-', //7B
- '*', //7C
- '9', //7D pageup 9
- '0', //7E scroll lock
- 0, 0, 0, 0, //7F-82 ?
- 0, //83 F7
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement