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

I use external controls but mouse and keyboard still give actions. #16

Closed
ChelaruViorel opened this issue Dec 21, 2016 · 6 comments
Closed

Comments

@ChelaruViorel
Copy link

Hi,
I use the C API, headless, and I set this :
if (env_c_api.setting(context, "controls", "external") != 0) {
sys_error("Failed to apply 'controls' setting.");
}

I give some actions using env_c_api.act(context, discr_actions, cont_actions);...just for tests.....I look right and start moving backwards....nothing fancy.

But if I move the mouse and press the arrows on the keyboard, they still give actions.
How do I cancel the keyboard and mouse, while I give the actions programmatically though the C API ?

Thanks,
Viorel

@charlesbeattie
Copy link
Collaborator

charlesbeattie commented Dec 21, 2016 via email

@ChelaruViorel
Copy link
Author

ChelaruViorel commented Dec 21, 2016

I didn't set it and does the same. I don't know what are other values of controls except internal and external....so how do I set it to false ?

@charlesbeattie
Copy link
Collaborator

charlesbeattie commented Dec 22, 2016 via email

@frankcarey
Copy link

frankcarey commented Feb 9, 2017

Maybe this is related to #44 ?

I can confirm that my mouse (though not keyboard it seems) are having a serious effect.

@tkoeppe
Copy link
Collaborator

tkoeppe commented Nov 28, 2017

We'll release a fix for this soon.

@charlesbeattie
Copy link
Collaborator

This is fixed in a7a58bf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants