MythTV  master
Classes | Macros | Typedefs | Functions
AppleRemote.cpp File Reference
#include "AppleRemote.h"
#include <cctype>
#include <cstdio>
#include <cstdlib>
#include <sys/errno.h>
#include <sys/sysctl.h>
#include <sysexits.h>
#include <unistd.h>
#include <mach/mach.h>
#include <mach/mach_error.h>
#include <IOKit/IOKitLib.h>
#include <IOKit/IOCFPlugIn.h>
#include <IOKit/hid/IOHIDLib.h>
#include <IOKit/hid/IOHIDKeys.h>
#include <CoreFoundation/CoreFoundation.h>
#include <CoreServices/CoreServices.h>
#include <sstream>
#include "mythlogging.h"
Include dependency graph for AppleRemote.cpp:

Go to the source code of this file.

Classes

struct  _ATV_IR_EVENT
 

Macros

#define REMOTE_SWITCH_COOKIE   19
 
#define REMOTE_COOKIE_STR   "19_"
 
#define ATV_COOKIE_STR   "17_9_280_"
 
#define LONG_PRESS_COUNT   10
 
#define KEY_RESPONSE_TIME   150 /* msecs before we send a key up event */
 
#define LOC   QString("AppleRemote::")
 

Typedefs

typedef struct _ATV_IR_EVENT ATV_IR_EVENT
 

Functions

static io_object_t _findAppleRemoteDevice (const char *devName)
 
static float GetATVversion ()
 

Macro Definition Documentation

◆ REMOTE_SWITCH_COOKIE

#define REMOTE_SWITCH_COOKIE   19

Definition at line 28 of file AppleRemote.cpp.

◆ REMOTE_COOKIE_STR

#define REMOTE_COOKIE_STR   "19_"

Definition at line 29 of file AppleRemote.cpp.

◆ ATV_COOKIE_STR

#define ATV_COOKIE_STR   "17_9_280_"

Definition at line 30 of file AppleRemote.cpp.

◆ LONG_PRESS_COUNT

#define LONG_PRESS_COUNT   10

Definition at line 31 of file AppleRemote.cpp.

◆ KEY_RESPONSE_TIME

#define KEY_RESPONSE_TIME   150 /* msecs before we send a key up event */

Definition at line 32 of file AppleRemote.cpp.

◆ LOC

#define LOC   QString("AppleRemote::")

Definition at line 34 of file AppleRemote.cpp.

Typedef Documentation

◆ ATV_IR_EVENT

typedef struct _ATV_IR_EVENT ATV_IR_EVENT

Function Documentation

◆ _findAppleRemoteDevice()

static io_object_t _findAppleRemoteDevice ( const char *  devName)
static

Definition at line 278 of file AppleRemote.cpp.

Referenced by AppleRemote::startListening().

◆ GetATVversion()

static float GetATVversion ( )
static

Definition at line 135 of file AppleRemote.cpp.

Referenced by AppleRemote::AppleRemote().