[HID] Fixed some issues with controller/passthrough visibility.
- Moved X_INPUT flags from kernel to HID - Added ability to return input type from driver
This commit is contained in:
@@ -239,6 +239,10 @@ X_RESULT XInputInputDriver::GetKeystroke(uint32_t user_index, uint32_t flags,
|
||||
return result;
|
||||
}
|
||||
|
||||
InputType XInputInputDriver::GetInputType() const {
|
||||
return InputType::Controller;
|
||||
}
|
||||
|
||||
} // namespace xinput
|
||||
} // namespace hid
|
||||
} // namespace xe
|
||||
|
||||
@@ -29,6 +29,7 @@ class XInputInputDriver final : public InputDriver {
|
||||
X_RESULT SetState(uint32_t user_index, X_INPUT_VIBRATION* vibration) override;
|
||||
X_RESULT GetKeystroke(uint32_t user_index, uint32_t flags,
|
||||
X_INPUT_KEYSTROKE* out_keystroke) override;
|
||||
virtual InputType GetInputType() const override;
|
||||
|
||||
private:
|
||||
void* module_;
|
||||
|
||||
Reference in New Issue
Block a user