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

Change input locks to fix map spin, Fixes #2126 #2403

Merged
merged 1 commit into from
Jan 14, 2019
Merged

Conversation

Dunbaratu
Copy link
Member

I also added some input locking to all kOS windows
including the GUI, to help get rid of some of the
click-through problems some of them had.

It is unclear WHY the stock game has this weird behavior in regards to the TARGETING input lock flag, but it does, so this ad-hoc ugly fix was my way around it - I go ahead and lock everything in the terminal including TARGETING (this gets rid of the spinning bug but introduces a new bug that you cannot SET TARGET from inside a script while the terminal window is focused). Then I get around that new bug by using a different technique to allow TARGETING than we used before - I simply temporarily turn off the terminal input lock the line before setting the target, then restore the terminal input lock immediately afterward on the next line.

I also added some input locking to all kOS windows
including the GUI, to help get rid of some of the
click-through problems some of them had.
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