RetroArch
keyboard_event_android.h
Go to the documentation of this file.
1 /* RetroArch - A frontend for libretro.
2  * Copyright (C) 2011-2017 - Daniel De Matteis
3  *
4  * RetroArch is free software: you can redistribute it and/or modify it under the terms
5  * of the GNU General Public License as published by the Free Software Found-
6  * ation, either version 3 of the License, or (at your option) any later version.
7  *
8  * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
9  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
10  * PURPOSE. See the GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License along with RetroArch.
13  * If not, see <http://www.gnu.org/licenses/>.
14  */
15 
16 #ifndef _KEYBOARD_EVENT_ANDROID_H
17 #define _KEYBOARD_EVENT_ANDROID_H
18 
19 // The list of defined Android keycodes is incomplete in SDK version 12 and lower.
20 // If using an SDK lower than 13 then add missing keycodes here
21 #if __ANDROID_API__ < 13
22 
23 /*
24  * Key codes.
25  */
26 enum {
47  AKEYCODE_F1 = 131,
48  AKEYCODE_F2 = 132,
49  AKEYCODE_F3 = 133,
50  AKEYCODE_F4 = 134,
51  AKEYCODE_F5 = 135,
52  AKEYCODE_F6 = 136,
53  AKEYCODE_F7 = 137,
54  AKEYCODE_F8 = 138,
55  AKEYCODE_F9 = 139,
56  AKEYCODE_F10 = 140,
57  AKEYCODE_F11 = 141,
58  AKEYCODE_F12 = 142,
86  AKEYCODE_TV = 170,
89  AKEYCODE_DVR = 173,
120 };
121 
122 /*
123  * Meta key / modifer state.
124  */
125 enum {
126  AMETA_CTRL_ON = 0x1000,
127 };
128 #endif
129 
130 #include <stdint.h>
131 
132 #include <boolean.h>
133 
134 #ifndef MAX_PADS
135 #define MAX_PADS 8
136 #endif
137 
138 #define ANDROID_KEYBOARD_PORT MAX_PADS
139 
140 bool android_keyboard_port_input_pressed(const struct retro_keybind *binds, unsigned id);
141 
142 bool android_keyboard_input_pressed(unsigned key);
143 
145 
146 void android_keyboard_free(void);
147 
148 #endif
Definition: keyboard_event_android.h:100
Definition: keyboard_event_android.h:59
Definition: keyboard_event_android.h:95
Definition: keyboard_event_android.h:45
Definition: keyboard_event_android.h:30
Definition: keyboard_event_android.h:94
Definition: keyboard_event_android.h:116
Definition: keyboard_event_android.h:41
Definition: keyboard_event_android.h:90
Definition: keyboard_event_android.h:33
Definition: keyboard_event_android.h:104
void android_keyboard_free(void)
Definition: keyboard_event_android.c:50
Definition: keyboard_event_android.h:44
Definition: keyboard_event_android.h:57
Definition: keyboard_event_android.h:101
Definition: keyboard_event_android.h:93
Definition: input_driver.h:93
Definition: keyboard_event_android.h:53
Definition: keyboard_event_android.h:70
Definition: keyboard_event_android.h:83
Definition: keyboard_event_android.h:109
Definition: keyboard_event_android.h:81
includes all by default used to find thumbnails Please choose a single playlist first Add Entry Add Folder Select Files< multiple > Please fill out all required fields RetroArch updated successfully Please restart the application for the changes to take effect Contributors Move Down Load Remove Add Pass No shader passes Reset All Passes Download thumbnail Start on Download All Thumbnails This Playlist Configured in port
Definition: msg_hash_us.h:7699
Definition: keyboard_event_android.h:61
Definition: keyboard_event_android.h:48
Definition: keyboard_event_android.h:63
Definition: keyboard_event_android.h:74
Definition: keyboard_event_android.h:37
Definition: keyboard_event_android.h:58
Definition: keyboard_event_android.h:118
Definition: keyboard_event_android.h:39
Definition: keyboard_event_android.h:50
Definition: keyboard_event_android.h:85
uint8_t * android_keyboard_state_get(unsigned port)
Definition: keyboard_event_android.c:45
Definition: keyboard_event_android.h:87
Definition: keyboard_event_android.h:111
Definition: keyboard_event_android.h:99
Definition: keyboard_event_android.h:68
Definition: keyboard_event_android.h:29
Definition: keyboard_event_android.h:28
Definition: keyboard_event_android.h:46
Definition: keyboard_event_android.h:97
Definition: keyboard_event_android.h:35
bool android_keyboard_port_input_pressed(const struct retro_keybind *binds, unsigned id)
Definition: keyboard_event_android.c:29
Definition: keyboard_event_android.h:119
Definition: keyboard_event_android.h:92
Definition: keyboard_event_android.h:64
Definition: keyboard_event_android.h:114
Definition: keyboard_event_android.h:47
Definition: keyboard_event_android.h:51
Definition: keyboard_event_android.h:77
Definition: keyboard_event_android.h:40
Definition: keyboard_event_android.h:76
Definition: keyboard_event_android.h:32
Definition: keyboard_event_android.h:107
Definition: keyboard_event_android.h:34
Definition: keyboard_event_android.h:106
enum retro_key key
Definition: input_driver.h:98
Definition: keyboard_event_android.h:75
Definition: keyboard_event_android.h:105
Definition: keyboard_event_android.h:82
Definition: keyboard_event_android.h:91
Definition: keyboard_event_android.h:31
Definition: keyboard_event_android.h:110
Definition: keyboard_event_android.h:66
Definition: keyboard_event_android.h:84
bool android_keyboard_input_pressed(unsigned key)
Definition: keyboard_event_android.c:40
Definition: keyboard_event_android.h:102
Definition: keyboard_event_android.h:112
Definition: keyboard_event_android.h:80
Definition: keyboard_event_android.h:52
Definition: keyboard_event_android.h:54
Definition: keyboard_event_android.h:42
Definition: keyboard_event_android.h:62
Definition: keyboard_event_android.h:126
Definition: keyboard_event_android.h:117
Definition: keyboard_event_android.h:96
Definition: keyboard_event_android.h:65
Definition: keyboard_event_android.h:73
Definition: keyboard_event_android.h:69
Definition: keyboard_event_android.h:49
Definition: keyboard_event_android.h:86
Definition: keyboard_event_android.h:98
Definition: keyboard_event_android.h:71
Definition: keyboard_event_android.h:88
Definition: keyboard_event_android.h:38
Definition: keyboard_event_android.h:78
Definition: keyboard_event_android.h:115
Definition: keyboard_event_android.h:67
Definition: keyboard_event_android.h:108
Definition: keyboard_event_android.h:79
Definition: keyboard_event_android.h:60
unsigned char uint8_t
Definition: stdint.h:124
Definition: keyboard_event_android.h:113
Definition: keyboard_event_android.h:72
Definition: keyboard_event_android.h:89
Definition: keyboard_event_android.h:103
Definition: keyboard_event_android.h:27
Definition: keyboard_event_android.h:55
Definition: keyboard_event_android.h:36
Definition: keyboard_event_android.h:43
Definition: keyboard_event_android.h:56