Skip to content

Cleaning and completing callback interface - #7

Open
craff wants to merge 3 commits into
masterfrom
xevent
Open

Cleaning and completing callback interface#7
craff wants to merge 3 commits into
masterfrom
xevent

Conversation

@craff

@craff craff commented Jan 9, 2021

Copy link
Copy Markdown
Owner

Cleaning some type for X events, adding focus and entering/leaving window event and
testing these in maze example.

@craff
craff requested a review from rlepigre January 9, 2021 03:38
@rlepigre

Copy link
Copy Markdown
Collaborator

The leave window event does not seem to work on my machine. When my mouse leaves the window nothing happens (even after I added some debug printing to the callback.)

Comment thread lib/ml_egl.c Outdated
{
CAMLparam1(v) ;
if(!initialized)
failwith("Egl.set_motion_notify_callback: not initialized") ;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed the error message is wrong here, we should check them all before merging.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By the way, these functions are all very similar. Maybe we should generate them with a macro.

@craff

craff commented Jan 10, 2021 via email

Copy link
Copy Markdown
Owner Author

@craff

craff commented Jan 10, 2021 via email

Copy link
Copy Markdown
Owner Author

@craff

craff commented Jan 10, 2021 via email

Copy link
Copy Markdown
Owner Author

@rlepigre

Copy link
Copy Markdown
Collaborator

For me it works on maze, if I leave the window while a key is presses, the maze stops its movement. This does not work for you ?

Actually it now works, maybe I did something wrong when testing.

@craff
craff force-pushed the master branch 6 times, most recently from 6f5eb01 to 323af38 Compare July 27, 2026 21:15
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

Successfully merging this pull request may close these issues.

2 participants