forked from eden-emu/eden
Make settings controller image change with controller input
This commit is contained in:
parent
61bf850f3d
commit
481cd86722
31 changed files with 2076 additions and 96 deletions
|
@ -377,6 +377,16 @@ public:
|
|||
return {};
|
||||
}
|
||||
|
||||
std::tuple<float, float> GetRawStatus() const override {
|
||||
const float x = joystick->GetAxis(axis_x, range);
|
||||
const float y = joystick->GetAxis(axis_y, range);
|
||||
return {x, -y};
|
||||
}
|
||||
|
||||
Input::AnalogProperties GetAnalogProperties() const override {
|
||||
return {deadzone, range, 0.5f};
|
||||
}
|
||||
|
||||
bool GetAnalogDirectionStatus(Input::AnalogDirection direction) const override {
|
||||
const auto [x, y] = GetStatus();
|
||||
const float directional_deadzone = 0.5f;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue