orbitusii / loki-bms-csharp

Battle Management Scope for DCS World (and maybe others?), this time in C#!
MIT License
2 stars 0 forks source link

Better Input System #20

Closed orbitusii closed 1 year ago

orbitusii commented 1 year ago

LOKI needs a better way to process inputs and feed them back out to the UI.

Should be able to receive clicks, then convert them to click objects based on whether they're a single or double click, click-and-drag, right click, etc.

Probably needs to run in a distinct thread, then objects that need input will get the current click status.

orbitusii commented 1 year ago

TIL WPF presumably has a doubleclick event. Probably doesn't need to be implemented.

orbitusii commented 1 year ago

Double clicking improved by using native MouseButtonEventArgs.ClickCount value rather than naively deciding if a double click was fired using Loki-specific code