38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
@end
@implementation OGKKeyPressEvent
@end
@implementation OGKKeyReleaseEvent
@end
@implementation OGKMouseEvent
- (of_point_t)cursor
{
return of_point(event.mouse.x, event.mouse.y);
}
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
@end
@implementation OGKKeyPressEvent
@end
@implementation OGKKeyReleaseEvent
@end
@implementation OGKCharacterTypedEvent
- (of_unichar_t)character
{
if (event.keyboard.unichar < 1)
return 0xFFFD;
return event.keyboard.unichar;
}
- (unsigned)modifiers
{
return event.keyboard.modifiers;
}
- (BOOL)repeated
{
return event.keyboard.repeat;
}
@end
@implementation OGKMouseEvent
- (of_point_t)cursor
{
return of_point(event.mouse.x, event.mouse.y);
}
|