diff options
| author | bunnei <bunneidev@gmail.com> | 2020-02-01 14:02:41 -0500 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-01 14:02:41 -0500 | 
| commit | 69a6796de10357947d3e0411126b13c59628cb51 (patch) | |
| tree | 4478c6e702785340b1d453ed55da23448d88e8f5 /src/core/frontend | |
| parent | c18f9898d9d155504e8d608238db9a9d12a743c6 (diff) | |
| parent | 635deb70d4c7b09749d9d7edb9515ede496f7f3e (diff) | |
Merge pull request #3284 from CJBok/hid-fix
hid: Fix analog sticks directional states
Diffstat (limited to 'src/core/frontend')
| -rw-r--r-- | src/core/frontend/input.h | 10 | 
1 files changed, 10 insertions, 0 deletions
| diff --git a/src/core/frontend/input.h b/src/core/frontend/input.h index 7c11d7546..2b098b7c6 100644 --- a/src/core/frontend/input.h +++ b/src/core/frontend/input.h @@ -15,6 +15,13 @@  namespace Input { +enum class AnalogDirection : u8 { +    RIGHT, +    LEFT, +    UP, +    DOWN, +}; +  /// An abstract class template for an input device (a button, an analog input, etc.).  template <typename StatusType>  class InputDevice { @@ -23,6 +30,9 @@ public:      virtual StatusType GetStatus() const {          return {};      } +    virtual bool GetAnalogDirectionStatus(AnalogDirection direction) const { +        return {}; +    }  };  /// An abstract class template for a factory that can create input devices. | 
