mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-14 10:05:44 -04:00
CheckReturn should not be here.
This commit is contained in:
parent
fda3d68753
commit
d76112a47a
@ -490,11 +490,6 @@ namespace OpenTK.Platform.MacOS.Carbon
|
||||
[DllImport(carbon)]
|
||||
static extern void ReleaseEvent(IntPtr theEvent);
|
||||
|
||||
internal static void SendEvent(IntPtr theEvent) {
|
||||
IntPtr theTarget = GetEventDispatcherTarget();
|
||||
SendEventToEventTarget(theEvent, theTarget);
|
||||
}
|
||||
|
||||
// Processes events in the queue and then returns.
|
||||
internal static void ProcessEvents() {
|
||||
IntPtr theEvent;
|
||||
@ -600,7 +595,7 @@ namespace OpenTK.Platform.MacOS.Carbon
|
||||
OSStatus result = API.GetEventParameter(inEvent,
|
||||
EventParamName.WindowRef, EventParamType.typeWindowRef, IntPtr.Zero,
|
||||
sizeof(IntPtr), IntPtr.Zero, (IntPtr)(void*)&retval);
|
||||
CheckReturn(result);
|
||||
//CheckReturn(result);
|
||||
windowRef = retval;
|
||||
return result;
|
||||
}
|
||||
|
@ -224,6 +224,10 @@ namespace OpenTK.Platform.MacOS {
|
||||
keyPressArgs.KeyChar = charCode;
|
||||
break;
|
||||
}
|
||||
if( !Keymap.ContainsKey( code ) ) {
|
||||
Debug.Print( "{0} is not mapped, ignoring" );
|
||||
return OSStatus.NoError;
|
||||
}
|
||||
|
||||
switch ((KeyboardEventKind)evt.EventKind) {
|
||||
case KeyboardEventKind.RawKeyRepeat:
|
||||
|
Loading…
x
Reference in New Issue
Block a user