diff options
Diffstat (limited to 'src/input/XBIRRemote.h')
-rw-r--r-- | src/input/XBIRRemote.h | 118 |
1 files changed, 118 insertions, 0 deletions
diff --git a/src/input/XBIRRemote.h b/src/input/XBIRRemote.h new file mode 100644 index 0000000000..fe9da2c7a1 --- /dev/null +++ b/src/input/XBIRRemote.h @@ -0,0 +1,118 @@ +/* + * Copyright (C) 2005-2013 Team XBMC + * http://xbmc.org + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This Program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with XBMC; see the file COPYING. If not, see + * <http://www.gnu.org/licenses/>. + * + */ + +#ifndef XBIRREMOTE_H +#define XBIRREMOTE_H + +#include "system.h" + +#define XINPUT_IR_REMOTE_DISPLAY 213 +#define XINPUT_IR_REMOTE_REVERSE 226 +#define XINPUT_IR_REMOTE_PLAY 234 +#define XINPUT_IR_REMOTE_FORWARD 227 +#define XINPUT_IR_REMOTE_SKIP_MINUS 221 +#define XINPUT_IR_REMOTE_STOP 224 +#define XINPUT_IR_REMOTE_PAUSE 230 +#define XINPUT_IR_REMOTE_SKIP_PLUS 223 +#define XINPUT_IR_REMOTE_TITLE 229 +#define XINPUT_IR_REMOTE_INFO 195 + +#define XINPUT_IR_REMOTE_UP 166 +#define XINPUT_IR_REMOTE_DOWN 167 +#define XINPUT_IR_REMOTE_LEFT 169 +#define XINPUT_IR_REMOTE_RIGHT 168 + +#define XINPUT_IR_REMOTE_SELECT 11 +#define XINPUT_IR_REMOTE_ENTER 22 + +#define XINPUT_IR_REMOTE_SUBTITLE 44 +#define XINPUT_IR_REMOTE_LANGUAGE 45 + +#define XINPUT_IR_REMOTE_MENU 247 +#define XINPUT_IR_REMOTE_BACK 216 + +#define XINPUT_IR_REMOTE_1 206 +#define XINPUT_IR_REMOTE_2 205 +#define XINPUT_IR_REMOTE_3 204 +#define XINPUT_IR_REMOTE_4 203 +#define XINPUT_IR_REMOTE_5 202 +#define XINPUT_IR_REMOTE_6 201 +#define XINPUT_IR_REMOTE_7 200 +#define XINPUT_IR_REMOTE_8 199 +#define XINPUT_IR_REMOTE_9 198 +#define XINPUT_IR_REMOTE_0 207 + +// additional keys from the media center extender for xbox remote +#define XINPUT_IR_REMOTE_POWER 196 +#define XINPUT_IR_REMOTE_MY_TV 49 +#define XINPUT_IR_REMOTE_MY_MUSIC 9 +#define XINPUT_IR_REMOTE_MY_PICTURES 6 +#define XINPUT_IR_REMOTE_MY_VIDEOS 7 + +#define XINPUT_IR_REMOTE_RECORD 232 + +#define XINPUT_IR_REMOTE_START 37 +#define XINPUT_IR_REMOTE_VOLUME_PLUS 208 +#define XINPUT_IR_REMOTE_VOLUME_MINUS 209 +#define XINPUT_IR_REMOTE_CHANNEL_PLUS 210 +#define XINPUT_IR_REMOTE_CHANNEL_MINUS 211 +#define XINPUT_IR_REMOTE_MUTE 192 + +#define XINPUT_IR_REMOTE_RECORDED_TV 101 +#define XINPUT_IR_REMOTE_LIVE_TV 24 +#define XINPUT_IR_REMOTE_STAR 40 +#define XINPUT_IR_REMOTE_HASH 41 +#define XINPUT_IR_REMOTE_CLEAR 249 + +// additional keys not defined by xbox remotes but present on generic remotes +#define XINPUT_IR_REMOTE_TELETEXT 250 +#define XINPUT_IR_REMOTE_RED 251 +#define XINPUT_IR_REMOTE_GREEN 252 +#define XINPUT_IR_REMOTE_YELLOW 253 +#define XINPUT_IR_REMOTE_BLUE 254 +#define XINPUT_IR_REMOTE_PLAYLIST 255 +#define XINPUT_IR_REMOTE_GUIDE 50 + +#define XINPUT_IR_REMOTE_LIVE_RADIO 248 +#define XINPUT_IR_REMOTE_EPG_SEARCH 246 + +#define XINPUT_IR_REMOTE_EJECT 235 +#define XINPUT_IR_REMOTE_CONTENTS_MENU 236 +#define XINPUT_IR_REMOTE_ROOT_MENU 237 +#define XINPUT_IR_REMOTE_TOP_MENU 238 +#define XINPUT_IR_REMOTE_DVD_MENU 239 + +#define XINPUT_IR_REMOTE_PRINT 240 + +// Reserved 256 -> ... +// Key.h +// KEY_BUTTON_* + +typedef struct _XINPUT_IR_REMOTE +{ + BYTE wButtons; + BYTE region; // just a guess + BYTE counter; // some value that is changing while a button is pressed... could be the state of the buffer + BYTE firstEvent; // > 0 - first event triggered after a button was pressed on the remote; 0 - not first event +} +XINPUT_IR_REMOTE, *PIR_REMOTE; + + +#endif |