Back to index

texmacs  1.0.7.15
Classes | Enumerations | Variables
HIDRemote.h File Reference
#import <Cocoa/Cocoa.h>
#include <Carbon/Carbon.h>
#include <unistd.h>
#include <mach/mach.h>
#include <sys/types.h>
#include <IOKit/IOKitLib.h>
#include <IOKit/IOCFPlugIn.h>
#include <IOKit/IOMessage.h>
#include <IOKit/hid/IOHIDKeys.h>
#include <IOKit/hid/IOHIDLib.h>
#include <IOKit/hid/IOHIDUsageTables.h>
#include <IOKit/hidsystem/IOHIDLib.h>
#include <IOKit/hidsystem/IOHIDParameter.h>
#include <IOKit/hidsystem/IOHIDShared.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

protocol  <HIDRemoteDelegate>
class  HIDRemote

Enumerations

enum  HIDRemoteMode { kHIDRemoteModeNone = 0L, kHIDRemoteModeShared, kHIDRemoteModeExclusive, kHIDRemoteModeExclusiveAuto }
enum  HIDRemoteButtonCode {
  kHIDRemoteButtonCodeNone = 0L, kHIDRemoteButtonCodeUp, kHIDRemoteButtonCodeDown, kHIDRemoteButtonCodeLeft,
  kHIDRemoteButtonCodeRight, kHIDRemoteButtonCodeCenter, kHIDRemoteButtonCodeMenu, kHIDRemoteButtonCodePlay,
  kHIDRemoteButtonCodeCodeMask = 0xFFL, kHIDRemoteButtonCodeHoldMask = (1L << 16L), kHIDRemoteButtonCodeSpecialMask = (1L << 17L), kHIDRemoteButtonCodeAluminumMask = (1L << 21L),
  kHIDRemoteButtonCodeUpHold = (kHIDRemoteButtonCodeHoldMask|kHIDRemoteButtonCodeUp), kHIDRemoteButtonCodeDownHold = (kHIDRemoteButtonCodeHoldMask|kHIDRemoteButtonCodeDown), kHIDRemoteButtonCodeLeftHold = (kHIDRemoteButtonCodeHoldMask|kHIDRemoteButtonCodeLeft), kHIDRemoteButtonCodeRightHold = (kHIDRemoteButtonCodeHoldMask|kHIDRemoteButtonCodeRight),
  kHIDRemoteButtonCodeCenterHold = (kHIDRemoteButtonCodeHoldMask|kHIDRemoteButtonCodeCenter), kHIDRemoteButtonCodeMenuHold = (kHIDRemoteButtonCodeHoldMask|kHIDRemoteButtonCodeMenu), kHIDRemoteButtonCodePlayHold = (kHIDRemoteButtonCodeHoldMask|kHIDRemoteButtonCodePlay), kHIDRemoteButtonCodePlus = kHIDRemoteButtonCodeUp,
  kHIDRemoteButtonCodePlusHold = kHIDRemoteButtonCodeUpHold, kHIDRemoteButtonCodeMinus = kHIDRemoteButtonCodeDown, kHIDRemoteButtonCodeMinusHold = kHIDRemoteButtonCodeDownHold, kHIDRemoteButtonCodePlayPause = kHIDRemoteButtonCodeCenter,
  kHIDRemoteButtonCodePlayPauseHold = kHIDRemoteButtonCodeCenterHold, kHIDRemoteButtonCodeIDChanged = (kHIDRemoteButtonCodeSpecialMask|(1L << 18L))
}
enum  HIDRemoteModel { kHIDRemoteModelUndetermined = 0L, kHIDRemoteModelWhitePlastic, kHIDRemoteModelAluminum }
enum  HIDRemoteAluminumRemoteSupportLevel { kHIDRemoteAluminumRemoteSupportLevelNone = 0L, kHIDRemoteAluminumRemoteSupportLevelEmulation, kHIDRemoteAluminumRemoteSupportLevelNative }
enum  HIDRemoteCompatibilityFlags { kHIDRemoteCompatibilityFlagsStandardHIDRemoteDevice = 1L }

Variables

NSString * kHIDRemoteManufacturer
NSString * kHIDRemoteProduct
NSString * kHIDRemoteTransport
NSString * kHIDRemoteCFPluginInterface
NSString * kHIDRemoteHIDDeviceInterface
NSString * kHIDRemoteCookieButtonCodeLUT
NSString * kHIDRemoteHIDQueueInterface
NSString * kHIDRemoteServiceNotification
NSString * kHIDRemoteCFRunLoopSource
NSString * kHIDRemoteLastButtonPressed
NSString * kHIDRemoteService
NSString * kHIDRemoteSimulateHoldEventsTimer
NSString * kHIDRemoteSimulateHoldEventsOriginButtonCode
NSString * kHIDRemoteAluminumRemoteSupportLevel
NSString * kHIDRemoteAluminumRemoteSupportOnDemand
NSString * kHIDRemoteDNHIDRemotePing
NSString * kHIDRemoteDNHIDRemoteRetry
NSString * kHIDRemoteDNHIDRemoteStatus
NSString * kHIDRemoteDNStatusHIDRemoteVersionKey
NSString * kHIDRemoteDNStatusPIDKey
NSString * kHIDRemoteDNStatusModeKey
NSString * kHIDRemoteDNStatusUnusedButtonCodesKey
NSString * kHIDRemoteDNStatusRemoteControlCountKey
NSString * kHIDRemoteDNStatusReturnToPIDKey
NSString * kHIDRemoteDNStatusActionKey
NSString * kHIDRemoteDNStatusActionStart
NSString * kHIDRemoteDNStatusActionStop
NSString * kHIDRemoteDNStatusActionUpdate
NSString * kHIDRemoteDNStatusActionNoNeed

Enumeration Type Documentation

Enumerator:
kHIDRemoteAluminumRemoteSupportLevelNone 
kHIDRemoteAluminumRemoteSupportLevelEmulation 
kHIDRemoteAluminumRemoteSupportLevelNative 

Definition at line 144 of file HIDRemote.h.

{
       kHIDRemoteAluminumRemoteSupportLevelNone = 0L,                 // This system has no support for the Aluminum Remote at all
       kHIDRemoteAluminumRemoteSupportLevelEmulation,                 // This system possibly has support for the Aluminum Remote (via emulation)
       kHIDRemoteAluminumRemoteSupportLevelNative                     // This system has native support for the Aluminum Remote
} HIDRemoteAluminumRemoteSupportLevel;
Enumerator:
kHIDRemoteButtonCodeNone 
kHIDRemoteButtonCodeUp 
kHIDRemoteButtonCodeDown 
kHIDRemoteButtonCodeLeft 
kHIDRemoteButtonCodeRight 
kHIDRemoteButtonCodeCenter 
kHIDRemoteButtonCodeMenu 
kHIDRemoteButtonCodePlay 
kHIDRemoteButtonCodeCodeMask 
kHIDRemoteButtonCodeHoldMask 
kHIDRemoteButtonCodeSpecialMask 
kHIDRemoteButtonCodeAluminumMask 
kHIDRemoteButtonCodeUpHold 
kHIDRemoteButtonCodeDownHold 
kHIDRemoteButtonCodeLeftHold 
kHIDRemoteButtonCodeRightHold 
kHIDRemoteButtonCodeCenterHold 
kHIDRemoteButtonCodeMenuHold 
kHIDRemoteButtonCodePlayHold 
kHIDRemoteButtonCodePlus 
kHIDRemoteButtonCodePlusHold 
kHIDRemoteButtonCodeMinus 
kHIDRemoteButtonCodeMinusHold 
kHIDRemoteButtonCodePlayPause 
kHIDRemoteButtonCodePlayPauseHold 
kHIDRemoteButtonCodeIDChanged 

Definition at line 87 of file HIDRemote.h.

{
       /* A code reserved for "no button" (needed for tracking) */
       kHIDRemoteButtonCodeNone    = 0L,

       /* Standard codes - available for white plastic and aluminum remote */
       kHIDRemoteButtonCodeUp,
       kHIDRemoteButtonCodeDown,
       kHIDRemoteButtonCodeLeft,
       kHIDRemoteButtonCodeRight,
       kHIDRemoteButtonCodeCenter,
       kHIDRemoteButtonCodeMenu,

       /* Extra codes - Only available for the new aluminum version of the remote */
       kHIDRemoteButtonCodePlay,

       /* Masks */
       kHIDRemoteButtonCodeCodeMask      = 0xFFL,
       kHIDRemoteButtonCodeHoldMask      = (1L << 16L),
       kHIDRemoteButtonCodeSpecialMask   = (1L << 17L),
       kHIDRemoteButtonCodeAluminumMask  = (1L << 21L), // PRIVATE - only used internally

       /* Hold button standard codes - available for white plastic and aluminum remote */
       kHIDRemoteButtonCodeUpHold       = (kHIDRemoteButtonCodeHoldMask|kHIDRemoteButtonCodeUp),
       kHIDRemoteButtonCodeDownHold     = (kHIDRemoteButtonCodeHoldMask|kHIDRemoteButtonCodeDown),
       kHIDRemoteButtonCodeLeftHold     = (kHIDRemoteButtonCodeHoldMask|kHIDRemoteButtonCodeLeft),
       kHIDRemoteButtonCodeRightHold    = (kHIDRemoteButtonCodeHoldMask|kHIDRemoteButtonCodeRight),
       kHIDRemoteButtonCodeCenterHold      = (kHIDRemoteButtonCodeHoldMask|kHIDRemoteButtonCodeCenter),
       kHIDRemoteButtonCodeMenuHold        = (kHIDRemoteButtonCodeHoldMask|kHIDRemoteButtonCodeMenu),

       /* Hold button extra codes - Only available for aluminum version of the remote */
       kHIDRemoteButtonCodePlayHold         = (kHIDRemoteButtonCodeHoldMask|kHIDRemoteButtonCodePlay),

       /* DEPRECATED codes - compatibility with HIDRemote 1.0 */
       kHIDRemoteButtonCodePlus      = kHIDRemoteButtonCodeUp,
       kHIDRemoteButtonCodePlusHold      = kHIDRemoteButtonCodeUpHold,
       kHIDRemoteButtonCodeMinus     = kHIDRemoteButtonCodeDown,
       kHIDRemoteButtonCodeMinusHold     = kHIDRemoteButtonCodeDownHold,
       kHIDRemoteButtonCodePlayPause        = kHIDRemoteButtonCodeCenter,
       kHIDRemoteButtonCodePlayPauseHold = kHIDRemoteButtonCodeCenterHold,

       /* Special purpose codes */
       kHIDRemoteButtonCodeIDChanged  = (kHIDRemoteButtonCodeSpecialMask|(1L << 18L)),     // (the ID of the connected remote has changed, you can safely ignore this)
       #ifdef _HIDREMOTE_EXTENSIONS
              #define _HIDREMOTE_EXTENSIONS_SECTION 1
              #include "HIDRemoteAdditions.h"
              #undef _HIDREMOTE_EXTENSIONS_SECTION
       #endif /* _HIDREMOTE_EXTENSIONS */
} HIDRemoteButtonCode;
Enumerator:
kHIDRemoteCompatibilityFlagsStandardHIDRemoteDevice 

Definition at line 353 of file HIDRemote.h.

Enumerator:
kHIDRemoteModeNone 
kHIDRemoteModeShared 
kHIDRemoteModeExclusive 
kHIDRemoteModeExclusiveAuto 

Definition at line 75 of file HIDRemote.h.

{
       kHIDRemoteModeNone = 0L,
       kHIDRemoteModeShared,              // Share the remote with others - let's you listen to the remote control events as long as noone has an exclusive lock on it
                                   // (RECOMMENDED ONLY FOR SPECIAL PURPOSES)

       kHIDRemoteModeExclusive,    // Try to acquire an exclusive lock on the remote (NOT RECOMMENDED)

       kHIDRemoteModeExclusiveAuto // Try to acquire an exclusive lock on the remote whenever the application has focus. Temporarily release control over the
                                   // remote when another application has focus (RECOMMENDED)
} HIDRemoteMode;
Enumerator:
kHIDRemoteModelUndetermined 
kHIDRemoteModelWhitePlastic 
kHIDRemoteModelAluminum 

Definition at line 137 of file HIDRemote.h.

{
       kHIDRemoteModelUndetermined = 0L,                       // Assume a white plastic remote
       kHIDRemoteModelWhitePlastic,                                   // Signal *likely* to be coming from a white plastic remote
       kHIDRemoteModelAluminum                                        // Signal *definitely* coming from an aluminum remote
} HIDRemoteModel;

Variable Documentation

Definition at line 1878 of file HIDRemote.m.

Definition at line 1879 of file HIDRemote.m.

Definition at line 1868 of file HIDRemote.m.

Definition at line 1873 of file HIDRemote.m.

Definition at line 1870 of file HIDRemote.m.

Definition at line 1886 of file HIDRemote.m.

Definition at line 1887 of file HIDRemote.m.

Definition at line 1888 of file HIDRemote.m.

Definition at line 1895 of file HIDRemote.m.

Definition at line 1901 of file HIDRemote.m.

Definition at line 1898 of file HIDRemote.m.

Definition at line 1899 of file HIDRemote.m.

Definition at line 1900 of file HIDRemote.m.

Definition at line 1891 of file HIDRemote.m.

Definition at line 1893 of file HIDRemote.m.

Definition at line 1892 of file HIDRemote.m.

Definition at line 1896 of file HIDRemote.m.

Definition at line 1897 of file HIDRemote.m.

Definition at line 1894 of file HIDRemote.m.

Definition at line 1869 of file HIDRemote.m.

Definition at line 1871 of file HIDRemote.m.

Definition at line 1874 of file HIDRemote.m.

Definition at line 1881 of file HIDRemote.m.

NSString* kHIDRemoteProduct

Definition at line 1882 of file HIDRemote.m.

NSString* kHIDRemoteService

Definition at line 1875 of file HIDRemote.m.

Definition at line 1872 of file HIDRemote.m.

Definition at line 1877 of file HIDRemote.m.

Definition at line 1876 of file HIDRemote.m.

Definition at line 1883 of file HIDRemote.m.