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

Missing data fields in WindowEventObj #126

Closed
pseudo-random opened this issue Aug 2, 2020 · 2 comments
Closed

Missing data fields in WindowEventObj #126

pseudo-random opened this issue Aug 2, 2020 · 2 comments

Comments

@pseudo-random
Copy link

According to the SDL2 documentation, the SDL_WindowEvent (WindowEventObj) struct should contain two data fields called data1 and data2. These fields are supposed to contain window event dependent data such as the new window size or position. The latest version of the sdl2 library does not provide access to the fields in question. It looks like they were removed in d4d6e6b. Am I missing something here or were they simply removed by accident?

@Araq
Copy link
Member

Araq commented Aug 17, 2020

Indeed, seems to be an oversight. Ping @dom96

@dom96
Copy link
Contributor

dom96 commented Aug 17, 2020

Yeah, I thought this was unused data and only wanted to fix the size of the object to make it castable. Feel free to fix it so the object is the same size and so it contains those fields.

Clyybber added a commit that referenced this issue Sep 21, 2020
Add data1/data2 back to WindowEventObj, fixes #126
Clyybber added a commit that referenced this issue Sep 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants