blob: 5350e16c0c8c0d62a336bc0a05fd548c9f7ba22c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
//
// IRKeyboardEmu.m
// XBMCHelper
//
// Created by Stephan Diederich on 14.04.09.
// Copyright 2009 __MyCompanyName__. All rights reserved.
//
#import "IRKeyboardEmu.h"
@implementation IRKeyboardEmu
+ (const char*) remoteControlDeviceName {
return "IRKeyboardEmu";
}
- (void) sendRemoteButtonEvent: (RemoteControlEventIdentifier) event pressedDown: (BOOL) pressedDown {
if (pressedDown == NO && event == kRemoteButtonMenu_Hold) {
// There is no seperate event for pressed down on menu hold. We are simulating that event here
[super sendRemoteButtonEvent:event pressedDown:YES];
}
[super sendRemoteButtonEvent:event pressedDown:pressedDown];
}
@end
|