Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions IrInputRemoteKeyCodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
* -# None
*
*/
#ifndef _IARM_IR_KEYCODES_H_
#define _IARM_IR_KEYCODES_H_
#ifndef _IR_INPUT_REMOTE_KEYCODES_H_
#define _IR_INPUT_REMOTE_KEYCODES_H_


#include <linux/input.h>
Expand Down Expand Up @@ -72,13 +72,13 @@ static IARM_keycodes kcodesMap_IARM2Linux[] =
IARM_TO_LINUX_KEY( KED_GUIDE,KEY_HOME)
IARM_TO_LINUX_KEY( KED_INFO, KEY_F9)
IARM_TO_LINUX_KEY( KED_STAR, KEY_F6)
IARM_TO_LINUX_KEY( KED_INFO, KEY_F9)
IARM_TO_LINUX_KEY( KED_TVPOWER, KEY_F1)
IARM_TO_LINUX_KEY( KED_INPUTKEY, KEY_F15)
IARM_TO_LINUX_KEY( KED_OK, KEY_OK)
IARM_TO_LINUX_KEY( KED_SELECT, KEY_ENTER)
IARM_TO_LINUX_KEY( KED_ENTER, KEY_ENTER)
IARM_TO_LINUX_KEY( KED_EXIT, KEY_ESC)
IARM_TO_LINUX_KEY( KED_BACK, KEY_ESC)
IARM_TO_LINUX_KEY( KED_PERIOD, KEY_F5)
IARM_TO_LINUX_KEY( KED_PUSH_TO_TALK, KEY_F8)
IARM_TO_LINUX_KEY( KED_POWER, KEY_POWER) //FP
Expand Down Expand Up @@ -128,6 +128,7 @@ static IARM_keycodes kcodesMap_IARM2Linux[] =
IARM_TO_LINUX_KEY( KED_SEARCH, KEY_F3)

IARM_TO_LINUX_KEY( KED_RF_PAIR_GHOST, KEY_BLUETOOTH)
IARM_TO_LINUX_KEY( KED_STB_MENU, KEY_F9) //cog


IARM_TO_LINUX_KEY( KED_UNDEFINEDKEY, KEY_UNKNOWN)
Expand All @@ -137,7 +138,7 @@ static IARM_keycodes kcodesMap_IARM2Linux[] =
}
#endif

#endif /* _IARM_IR_KEYCODES_H_ */
#endif /* _IR_INPUT_REMOTE_KEYCODES_H_ */


/* End of IARM_BUS_IRMGR_API doxygen group */
Expand Down
5 changes: 3 additions & 2 deletions UIEventSimulator.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ lookUpTable table[] =
{ "left", KED_ARROWLEFT },
{ "right", KED_ARROWRIGHT },
{ "select", KED_SELECT },
{ "enter", KED_SELECT },
{ "enter", KED_ENTER },
{ "exit", KED_EXIT },
{ "chup", KED_CHANNELUP },
Expand Down Expand Up @@ -85,7 +86,7 @@ lookUpTable table[] =
{ "previous", KED_PREVIOUS },
{ "next", KED_NEXT },
{ "menu", KED_MENU },
{ "home", KED_MENU },
{ "home", KED_MENU },
{ "inputkey", KED_INPUTKEY },
{ "livetv", KED_LIVE },
{ "mydvr", KED_MYDVR },
Expand All @@ -107,7 +108,7 @@ lookUpTable table[] =
{ "dmcquery", KED_DMC_QUERY },
{ "otrstart", KED_OTR_START },
{ "strstop", KED_OTR_STOP },
{ "Period", KED_PERIOD },
{ "period", KED_PERIOD },
{ "push2talk", KED_PUSH_TO_TALK },
{ "mute", KED_MUTE },
{ "info", KED_INFO },
Expand Down
6 changes: 3 additions & 3 deletions uInputInternal.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@
**/


#ifndef _IARM_UINPUT_INTERNAL_
#define _IARM_UINPUT_INTERNAL_
#ifndef _UINPUT_INTERNAL_
#define _UINPUT_INTERNAL_
#include "libIARM.h"
#include <string.h>
#include <stdbool.h>
Expand Down Expand Up @@ -100,7 +100,7 @@ typedef void (* uinput_dispatcher_t) (int keyCode, int keyType, int source);
*
* @return Error code if fails.
*/
int UINPUT_init();
int UINPUT_init(void);

/**
* @brief get the dispather that will listen for IARM IR
Expand Down
2 changes: 1 addition & 1 deletion uinput.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ static void udispatcher (int keyCode, int keyType, int source)
}


int UINPUT_init()
int UINPUT_init(void)
{
#ifndef UINPUT_VERSION
#define UINPUT_VERSION (0)
Expand Down