Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No windowID in SDL_ProximityEvent #168

Closed
SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Closed

No windowID in SDL_ProximityEvent #168

SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Labels
wontfix This will not be worked on

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

These attachments are available in the static archive:

Reported in version: HG 2.0
Reported for operating system, platform: All, All

Comments on the original bug report:

On 2009-06-04 23:48:47 +0000, Ken Bull wrote:

No windowID here, so what is x, y relative to?

include/events.h:
330 typedef struct SDL_ProximityEvent
331 {
332 Uint8 type;
333 Uint8 which;
334 int cursor;
335 int x;
336 int y;
337 } SDL_ProximityEvent;

src/events/SDL_mouse_c.h:
120 /* Send a proximity event for a mouse */
121 extern int SDL_SendProximity(int id, int x, int y, int type);

Affected files/lines/code:
include/events.h 330-337 SDL_ProximityEvent

src/events/SDL_mouse.c 352-380 SDL_SendProximity
src/events/SDL_mouse_c.h 121 SDL_SendProximity

src/video/win32/SDL_win32events.c 151-166 calls SDL_SendProximity
src/video/x11/SDL_x11events.c 339-352 calls SDL_SendProximity

test/testmmousetablet.c add test for windowID

On 2009-06-09 08:48:38 +0000, Ken Bull wrote:

Created attachment 329
patch to add windowID to SDL_ProximityEvent

not tested. Still need to make sure it works.
Create an application which opens two or more windows and prints out the windowID or draws to the window whenever a proximity event is triggered. Verify that the windowID is different for different windows, but same for same window, and that the correct windowID is actually correct.

On 2009-12-15 22:37:32 +0000, Ryan C. Gordon wrote:

Changing bug priorities...

--ryan.

On 2010-07-12 22:06:03 +0000, Sam Lantinga wrote:

The proximity event is going away, at least for now.

@SDLBugzilla SDLBugzilla added bug wontfix This will not be worked on labels Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant