Mercurial > sdl-ios-xcode
comparison src/video/uikit/keyinfotable.h @ 2447:7683a2e0e5e9 gsoc2008_iphone
Added comments
author | Holmes Futrell <hfutrell@umail.ucsb.edu> |
---|---|
date | Sat, 16 Aug 2008 00:10:15 +0000 |
parents | 6c31bbd56c49 |
children |
comparison
equal
deleted
inserted
replaced
2446:69ca51fd121d | 2447:7683a2e0e5e9 |
---|---|
1 /* | 1 /* |
2 * scancodes_iphoneos.h | 2 SDL - Simple DirectMedia Layer |
3 * SDLiPhoneOS | 3 Copyright (C) 1997-2006 Sam Lantinga |
4 * | 4 |
5 * Created by Holmes Futrell on 7/25/08. | 5 This library is free software; you can redistribute it and/or |
6 * Copyright 2008 __MyCompanyName__. All rights reserved. | 6 modify it under the terms of the GNU Lesser General Public |
7 * | 7 License as published by the Free Software Foundation; either |
8 version 2.1 of the License, or (at your option) any later version. | |
9 | |
10 This library is distributed in the hope that it will be useful, | |
11 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 Lesser General Public License for more details. | |
14 | |
15 You should have received a copy of the GNU Lesser General Public | |
16 License along with this library; if not, write to the Free Software | |
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
18 | |
19 Sam Lantinga | |
20 slouken@libsdl.org | |
8 */ | 21 */ |
9 | 22 |
10 #ifndef _UIKIT_KeyInfo | 23 #ifndef _UIKIT_KeyInfo |
11 #define _UIKIT_KeyInfo | 24 #define _UIKIT_KeyInfo |
12 | 25 |
13 #include "SDL_scancode.h" | 26 #include "SDL_scancode.h" |
27 | |
28 /* | |
29 This file is used by the keyboard code in SDL_uikitview.m to convert between characters | |
30 passed in from the iPhone's virtual keyboard, and tuples of SDL_scancodes and SDL_keymods. | |
31 For example unicharToUIKeyInfoTable['a'] would give you the scan code and keymod for lower | |
32 case a. | |
33 */ | |
14 | 34 |
15 typedef struct { | 35 typedef struct { |
16 SDL_scancode code; | 36 SDL_scancode code; |
17 Uint16 mod; | 37 Uint16 mod; |
18 } UIKitKeyInfo; | 38 } UIKitKeyInfo; |