Commit Graph
15 Commits
Author SHA1 Message Date
Vasily 9412c31e42 Refactor input_sender to have main logic be cross platform
Previously logic was duplicated for Linux/Windows.
Additionally, Linux was
```cpp
if ( isModifier( token ) )
{
    sendKeyPress( token, KeyStatus::Down, display );
    if ( noKeyUp )
    {
        heldInputs.push_back( token );
    }
    continue;
}
```
while Windows was
```cpp
if ( isModifier( token ) )
{
    inputs.push_back( createInputStruct(
                convertToVirtualKeycode( token ), KeyStatus::Down ) );
    if ( !noKeyUp )
    {
        heldInputs.push_back( token );
    }
    continue;
}
```
(notice difference in noKeyUp if statement which was a bug on Linux.
Windows was the correct version and it has been kept.
2020-05-17 22:36:35 +02:00
Kung-vr b4dbbe8857 Add keyboard input RShift, tilde, "no key up" tokens and debug buttons
These are used to add support for vrc debug commands which I personally wanted to add. Because it's a narrow use case the must be enabled manually by adding vrcDebug = true to [utilitiesSettings] in the OpenVRAdvancedSettings.ini file
2019-10-01 10:36:04 +09:00
Vasily 73e1878e59 Remove X11 logging calls 2019-06-15 10:00:46 +02:00
Vasily 97009aa39a Convert KeySym to KeyCode
Previously KeySyms were sent when KeyCodes should have been sent.
2019-06-15 10:00:46 +02:00
Vasily e2f41fce37 Remove unused param for X11 input sender 2019-06-15 10:00:46 +02:00
Vasily 589b759c77 Linux Keyboard Input: Make KeySym conv explicit 2019-06-15 10:00:46 +02:00
Vasily 9703917a19 Fix bug in Linux keyboard input sender
Held modifiers weren't being released again.
2019-06-15 10:00:46 +02:00
Vasily 061509eff6 Add casts to logging calls 2019-06-15 10:00:46 +02:00
Vasily f68413d651 Add logging calls to X11 key sending 2019-06-15 10:00:46 +02:00
Vasily 3f8f757ead Add error logging for keyboard input 2019-05-25 18:49:42 +02:00
Vasily 55a3830787 Fix keyboard input implementation error and replace old system 2019-05-25 18:49:42 +02:00
Vasily d48f74b314 Fix clang-tidy errors 2019-05-25 18:49:42 +02:00
Vasily 2d8f5a1b40 Add Enter button to spec and keyboard_input
It was mistakenly left out.
2019-05-25 18:49:42 +02:00
Vasily eb25656eeb Fix typo in keyboard_input function name 2019-05-25 18:49:42 +02:00
Vasily 6a3a58361d Add Linux keyboard_input support 2019-05-25 18:49:42 +02:00