PageRenderTime 12ms CodeModel.GetById 9ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/xbmc/input/XBIRRemote.h

http://github.com/xbmc/xbmc
C++ Header | 118 lines | 74 code | 20 blank | 24 comment | 0 complexity | 3bbba56795344a765ff079322ef287a5 MD5 | raw file
  1/*
  2 *      Copyright (C) 2005-2013 Team XBMC
  3 *      http://xbmc.org
  4 *
  5 *  This Program is free software; you can redistribute it and/or modify
  6 *  it under the terms of the GNU General Public License as published by
  7 *  the Free Software Foundation; either version 2, or (at your option)
  8 *  any later version.
  9 *
 10 *  This Program 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
 13 *  GNU General Public License for more details.
 14 *
 15 *  You should have received a copy of the GNU General Public License
 16 *  along with XBMC; see the file COPYING.  If not, see
 17 *  <http://www.gnu.org/licenses/>.
 18 *
 19 */
 20
 21#ifndef XBIRREMOTE_H
 22#define XBIRREMOTE_H
 23
 24#include "system.h"
 25
 26#define XINPUT_IR_REMOTE_DISPLAY      213
 27#define XINPUT_IR_REMOTE_REVERSE      226
 28#define XINPUT_IR_REMOTE_PLAY         234
 29#define XINPUT_IR_REMOTE_FORWARD      227
 30#define XINPUT_IR_REMOTE_SKIP_MINUS   221
 31#define XINPUT_IR_REMOTE_STOP         224
 32#define XINPUT_IR_REMOTE_PAUSE        230
 33#define XINPUT_IR_REMOTE_SKIP_PLUS    223
 34#define XINPUT_IR_REMOTE_TITLE        229
 35#define XINPUT_IR_REMOTE_INFO         195
 36
 37#define XINPUT_IR_REMOTE_UP           166
 38#define XINPUT_IR_REMOTE_DOWN         167
 39#define XINPUT_IR_REMOTE_LEFT         169
 40#define XINPUT_IR_REMOTE_RIGHT        168
 41
 42#define XINPUT_IR_REMOTE_SELECT       11
 43#define XINPUT_IR_REMOTE_ENTER        22
 44
 45#define XINPUT_IR_REMOTE_SUBTITLE     44
 46#define XINPUT_IR_REMOTE_LANGUAGE     45
 47
 48#define XINPUT_IR_REMOTE_MENU         247
 49#define XINPUT_IR_REMOTE_BACK         216
 50
 51#define XINPUT_IR_REMOTE_1            206
 52#define XINPUT_IR_REMOTE_2            205
 53#define XINPUT_IR_REMOTE_3            204
 54#define XINPUT_IR_REMOTE_4            203
 55#define XINPUT_IR_REMOTE_5            202
 56#define XINPUT_IR_REMOTE_6            201
 57#define XINPUT_IR_REMOTE_7            200
 58#define XINPUT_IR_REMOTE_8            199
 59#define XINPUT_IR_REMOTE_9            198
 60#define XINPUT_IR_REMOTE_0            207
 61
 62// additional keys from the media center extender for xbox remote
 63#define XINPUT_IR_REMOTE_POWER          196
 64#define XINPUT_IR_REMOTE_MY_TV          49
 65#define XINPUT_IR_REMOTE_MY_MUSIC       9
 66#define XINPUT_IR_REMOTE_MY_PICTURES    6
 67#define XINPUT_IR_REMOTE_MY_VIDEOS      7
 68
 69#define XINPUT_IR_REMOTE_RECORD         232
 70
 71#define XINPUT_IR_REMOTE_START          37
 72#define XINPUT_IR_REMOTE_VOLUME_PLUS    208
 73#define XINPUT_IR_REMOTE_VOLUME_MINUS   209
 74#define XINPUT_IR_REMOTE_CHANNEL_PLUS   210
 75#define XINPUT_IR_REMOTE_CHANNEL_MINUS  211
 76#define XINPUT_IR_REMOTE_MUTE           192
 77
 78#define XINPUT_IR_REMOTE_RECORDED_TV    101
 79#define XINPUT_IR_REMOTE_LIVE_TV        24
 80#define XINPUT_IR_REMOTE_STAR           40
 81#define XINPUT_IR_REMOTE_HASH           41
 82#define XINPUT_IR_REMOTE_CLEAR          249
 83
 84// additional keys not defined by xbox remotes but present on generic remotes
 85#define XINPUT_IR_REMOTE_TELETEXT       250
 86#define XINPUT_IR_REMOTE_RED            251
 87#define XINPUT_IR_REMOTE_GREEN          252
 88#define XINPUT_IR_REMOTE_YELLOW         253
 89#define XINPUT_IR_REMOTE_BLUE           254
 90#define XINPUT_IR_REMOTE_PLAYLIST       255
 91#define XINPUT_IR_REMOTE_GUIDE          50
 92
 93#define XINPUT_IR_REMOTE_LIVE_RADIO     248
 94#define XINPUT_IR_REMOTE_EPG_SEARCH     246
 95
 96#define XINPUT_IR_REMOTE_EJECT          235
 97#define XINPUT_IR_REMOTE_CONTENTS_MENU  236
 98#define XINPUT_IR_REMOTE_ROOT_MENU      237
 99#define XINPUT_IR_REMOTE_TOP_MENU       238
100#define XINPUT_IR_REMOTE_DVD_MENU       239
101
102#define XINPUT_IR_REMOTE_PRINT          240
103
104// Reserved 256 -> ...
105// Key.h
106// KEY_BUTTON_*
107
108typedef struct _XINPUT_IR_REMOTE
109{
110  BYTE wButtons;
111  BYTE region;   // just a guess
112  BYTE counter;  // some value that is changing while a button is pressed... could be the state of the buffer
113  BYTE firstEvent;  // > 0 - first event triggered after a button was pressed on the remote; 0 - not first event
114}
115XINPUT_IR_REMOTE, *PIR_REMOTE;
116
117
118#endif