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)]
|
[DllImport(carbon)]
|
||||||
static extern void ReleaseEvent(IntPtr theEvent);
|
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.
|
// Processes events in the queue and then returns.
|
||||||
internal static void ProcessEvents() {
|
internal static void ProcessEvents() {
|
||||||
IntPtr theEvent;
|
IntPtr theEvent;
|
||||||
@ -600,7 +595,7 @@ namespace OpenTK.Platform.MacOS.Carbon
|
|||||||
OSStatus result = API.GetEventParameter(inEvent,
|
OSStatus result = API.GetEventParameter(inEvent,
|
||||||
EventParamName.WindowRef, EventParamType.typeWindowRef, IntPtr.Zero,
|
EventParamName.WindowRef, EventParamType.typeWindowRef, IntPtr.Zero,
|
||||||
sizeof(IntPtr), IntPtr.Zero, (IntPtr)(void*)&retval);
|
sizeof(IntPtr), IntPtr.Zero, (IntPtr)(void*)&retval);
|
||||||
CheckReturn(result);
|
//CheckReturn(result);
|
||||||
windowRef = retval;
|
windowRef = retval;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -223,6 +223,10 @@ namespace OpenTK.Platform.MacOS {
|
|||||||
GetCharCodes(inEvent, out code, out charCode);
|
GetCharCodes(inEvent, out code, out charCode);
|
||||||
keyPressArgs.KeyChar = charCode;
|
keyPressArgs.KeyChar = charCode;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
if( !Keymap.ContainsKey( code ) ) {
|
||||||
|
Debug.Print( "{0} is not mapped, ignoring" );
|
||||||
|
return OSStatus.NoError;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch ((KeyboardEventKind)evt.EventKind) {
|
switch ((KeyboardEventKind)evt.EventKind) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user