mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-16 12:58:33 +02:00
XInput2: Make button state a u32
Because we care how many bits it has, not its arithmetic range. No functional change on all supported platforms.
This commit is contained in:
@ -13,6 +13,7 @@ extern "C" {
|
||||
#include <X11/keysym.h>
|
||||
}
|
||||
|
||||
#include "Common/CommonTypes.h"
|
||||
#include "Common/Matrix.h"
|
||||
#include "InputCommon/ControllerInterface/ControllerInterface.h"
|
||||
|
||||
@ -26,7 +27,7 @@ private:
|
||||
struct State
|
||||
{
|
||||
std::array<char, 32> keyboard;
|
||||
unsigned int buttons;
|
||||
u32 buttons;
|
||||
Common::Vec2 cursor;
|
||||
Common::Vec3 axis;
|
||||
Common::Vec3 relative_mouse;
|
||||
@ -52,11 +53,11 @@ private:
|
||||
{
|
||||
public:
|
||||
std::string GetName() const override { return name; }
|
||||
Button(unsigned int index, unsigned int* buttons);
|
||||
Button(unsigned int index, u32* buttons);
|
||||
ControlState GetState() const override;
|
||||
|
||||
private:
|
||||
const unsigned int* m_buttons;
|
||||
const u32* m_buttons;
|
||||
const unsigned int m_index;
|
||||
std::string name;
|
||||
};
|
||||
|
Reference in New Issue
Block a user