my question is very simple. I want to read multiple keys pressed at the same time.
I use this code:
-(void)keyDown:(NSEvent *) theEvent
{
NSString *string;
int index;
string = [theEvent characters];
for(index = 0; index<[string length] ; index++){
NSLog(@"%i,%c", index, [string characterAtIndex:index]);
}
}
For some reason, it only registers one key at a time; the string length is always 1.
Thanks