Skip to content

[ExtMFD] Add keyboard input support#662

Open
EvESpirit wants to merge 1 commit into
orbitersim:mainfrom
EvESpirit:extmfd
Open

[ExtMFD] Add keyboard input support#662
EvESpirit wants to merge 1 commit into
orbitersim:mainfrom
EvESpirit:extmfd

Conversation

@EvESpirit
Copy link
Copy Markdown
Contributor

It's been brought to my attention by rcflyinghokie (@folgers on Discord) that the ExtMFD core module does not support keybinds. I'm not sure if it ever did (as in before ImGUI) but regardless, this PR resolves this issue. ExtMFDs accept keyboard shortcuts if specifically highlighted as this was the cleanest way to do it IMO (as opposed to something like, different modifiers than Shift for each ExtMFD open etc.).

@TheGondos
Copy link
Copy Markdown
Contributor

This works OK. The for loop is slightly offputting but I don't think ImGui gives a choice.
Timed it at less than a microsecond on my hardware anyway so it shouldn't be a problem^^

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