mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2024-12-23 11:21:30 +11:00
Char callback got lost for some reason
This commit is contained in:
parent
b5f3cf1ca3
commit
596c5a7097
|
@ -70,6 +70,14 @@
|
|||
key_callback(rust_data, [event keyCode], 1);
|
||||
}
|
||||
|
||||
if (char_callback) {
|
||||
NSString* characters = [event characters];
|
||||
NSUInteger i, length = [characters length];
|
||||
|
||||
for (i = 0; i < length; i++)
|
||||
char_callback(rust_data, [characters characterAtIndex:i]);
|
||||
}
|
||||
|
||||
[super keyDown:event];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue