Add OGKCharacterTypedEvent.
This commit is contained in:
parent
a98c97edb2
commit
0dca20000d
5 changed files with 57 additions and 6 deletions
|
@ -107,6 +107,22 @@ static int mouse_retain_count = 0;
|
|||
display: display];
|
||||
}
|
||||
|
||||
break;
|
||||
case ALLEGRO_EVENT_KEY_CHAR:
|
||||
object_setClass(event, [OGKCharacterTypedEvent class]);
|
||||
|
||||
if ([delegate respondsToSelector:
|
||||
@selector(characterWasTyped:display:)]) {
|
||||
OGKDisplay *display = [OGKDisplay
|
||||
OGK_displayForAllegroDisplay:
|
||||
allegroEvent->keyboard.display];
|
||||
OGKCharacterTypedEvent *characterTypedEvent =
|
||||
(OGKCharacterTypedEvent*)event;
|
||||
|
||||
[delegate characterWasTyped: characterTypedEvent
|
||||
display: display];
|
||||
}
|
||||
|
||||
break;
|
||||
case ALLEGRO_EVENT_MOUSE_AXES:
|
||||
object_setClass(event, [OGKMouseMovedEvent class]);
|
||||
|
|
Reference in a new issue