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

Turning off Idle callback #1

Open
wilsonjord opened this issue Dec 20, 2017 · 1 comment
Open

Turning off Idle callback #1

wilsonjord opened this issue Dec 20, 2017 · 1 comment

Comments

@wilsonjord
Copy link

The only way I could figure out to set idle callback to "null" in order to prevent consuming CPU is by using
unregisterCallback ("IDLE_ACTION")

However, once that happens you lose the ability to add your own idle callbacks like:
Application.idle += &application_idle;

Only way I can see to get it back going is to register IDLE_ACTION callback again, but by that point use of Application.idle becomes redundant, you need to use the IupSetFunction calls directly. Is there a better way?

@Heromyth
Copy link
Owner

You are right. The event handler just a simple wrapper for IUP stuff. I'll try to fix it.

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