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

Derive Default for MEVENT #129

Open
gyscos opened this issue Apr 22, 2017 · 0 comments
Open

Derive Default for MEVENT #129

gyscos opened this issue Apr 22, 2017 · 0 comments

Comments

@gyscos
Copy link
Collaborator

gyscos commented Apr 22, 2017

To retrieve a mouse event, we need to use ncurses::getmouse with a *mut EVENT. This means we need to create an "empty" MEVENT to give to this function.
It would be nice to be able to create this object using MEVENT::default(), rather than initializing the fields manually. (The result would be similar to C, where we just declare MEVENT event;)

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

1 participant