mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-08-26 00:21:39 +00:00
@@ -913,6 +913,7 @@ typedef struct SDL_PenProximityEvent
|
||||
Uint64 timestamp; /**< In nanoseconds, populated using SDL_GetTicksNS() */
|
||||
SDL_WindowID windowID; /**< The window with pen focus, if any */
|
||||
SDL_PenID which; /**< The pen instance id */
|
||||
SDL_PenInputFlags pen_state; /**< Complete pen input state at time of event */
|
||||
} SDL_PenProximityEvent;
|
||||
|
||||
/**
|
||||
|
||||
@@ -674,6 +674,7 @@ void SDL_SendPenProximity(Uint64 timestamp, SDL_PenID instance_id, SDL_Window *w
|
||||
event.pproximity.timestamp = timestamp;
|
||||
event.pproximity.windowID = window ? window->id : 0;
|
||||
event.pproximity.which = instance_id;
|
||||
event.pproximity.pen_state = input_state;
|
||||
SDL_PushEvent(&event);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user