Add some newer Cocoa methods for NSEvent.

This commit is contained in:
fredkiefer 2017-07-09 21:52:32 +02:00
parent d078c703a4
commit 025b73ce6d
2 changed files with 92 additions and 8 deletions

View file

@ -937,7 +937,7 @@ static const char *eventTypes[] = {
/**
* Returns the modifier flag bits associated with the event.
*/
- (NSUInteger) modifierFlags
- (NSEventModifierFlags) modifierFlags
{
return modifier_flags;
}
@ -1058,6 +1058,12 @@ static const char *eventTypes[] = {
return window_num;
}
- (NSEventMask) associatedEventsMask
{
// FIXME
return 0;
}
/*
* Methods for tablet events
*/
@ -1079,7 +1085,7 @@ static const char *eventTypes[] = {
return 0;
}
- (NSUInteger) buttonMask
- (NSEventButtonMask) buttonMask
{
// FIXME
return 0;
@ -1175,4 +1181,57 @@ static const char *eventTypes[] = {
return 0;
}
+ (NSEvent*) eventWithEventRef: (const void *)eventRef
{
// FIXME
return nil;
}
- (const void *) eventRef
{
// FIXME
return NULL;
}
+ (void) setMouseCoalescingEnabled: (BOOL)flag
{
// FIXME
}
+ (BOOL) isMouseCoalescingEnabled
{
// FIXME
return YES;
}
+ (NSEventModifierFlags) modifierFlags
{
// FIXME
return 0;
}
+ (NSTimeInterval) keyRepeatDelay
{
// FIXME
return 0;
}
+ (NSTimeInterval) keyRepeatInterval
{
// FIXME
return 0;
}
+ (NSUInteger) pressedMouseButtons
{
// FIXME
return 0;
}
+ (NSTimeInterval) doubleClickInterval
{
// FIXME
return 0;
}
@end