-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Labels
Comments
I think this is a badly named setting. (And why it is not documented.)
Don't set it or set it to false to prevent keyboard and mouse from being
read.
…On Wed, 21 Dec 2016 at 19:20, ChelaruViorel ***@***.***> wrote:
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
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#16>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADVSeW8GEsbWgprvLVoRRaXFDMTrCgHwks5rKXwPgaJpZM4LTSUX>
.
|
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 ? |
I'm sorry, I was replying from memory. What you were doing is correct.
I can now see that this is a bug and the mouse movements are still making
there way through to the game.
I'll put together a fix.
…On 21 December 2016 at 21:33, Vio ***@***.***> wrote:
I didn't set it and does the same. I don't know what are other values of
controles except internal and external....so how do I set it to false ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#16 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ADVSeatSNDMVsJhFCwiqcuB6k-J2em-rks5rKZsdgaJpZM4LTSUX>
.
--
Charles Beattie | Software Engineer | [email protected] | +44 7766760067
|
Maybe this is related to #44 ? I can confirm that my mouse (though not keyboard it seems) are having a serious effect. |
We'll release a fix for this soon. |
This is fixed in a7a58bf. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: