Skip to content

InputLockManager not being checked before getting keys #42

@linuxgurugamer

Description

@linuxgurugamer

From @rudolf Meier on the forum:

Hello

I was testing the renaming dialog of my DockingFunctions and I had camera switches when pressing - or some other keys ... I then found out, that it's because of the Hullcam. My mod does set locks when it opens the dialog and I hoped this would be enough ->

private const ControlTypes MyLocks =
    ControlTypes.ALL_SHIP_CONTROLS | ControlTypes.EVA_INPUT
| ControlTypes.ACTIONS_ALL | ControlTypes.GROUPS_ALL
| ControlTypes.THROTTLE | ControlTypes.TIMEWARP
| ControlTypes.MISC // Stage locking (mod-L)
| [ControlTypes.MAP](https://controltypes.map/)_TOGGLE // M
| ControlTypes.STAGING // Space
| ControlTypes.CAMERACONTROLS // Backspace
| ControlTypes.UI_DIALOGS; // Navball toggle

I then checked your code and saw, that you're not checking the InputLockManager when processing input. Maybe that would be something to add?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions