mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +00:00
parent
3669920fdd
commit
91a5598283
1 changed files with 6 additions and 1 deletions
|
|
@ -84,7 +84,12 @@ static void Cocoa_HandlePenProximityEvent(SDL_CocoaWindowData *_data, NSEvent *e
|
|||
return; // we ignore other things, which hopefully is right.
|
||||
}
|
||||
|
||||
Cocoa_PenHandle *handle = (Cocoa_PenHandle *) SDL_calloc(1, sizeof (*handle));
|
||||
Cocoa_PenHandle *handle = Cocoa_FindPenByDeviceID(devid, toolid);
|
||||
if (handle) {
|
||||
return; // already have this one.
|
||||
}
|
||||
|
||||
handle = (Cocoa_PenHandle *) SDL_calloc(1, sizeof (*handle));
|
||||
if (!handle) {
|
||||
return; // oh well.
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue