Converting HID API to use be<> auto swapping type.
This commit is contained in:
@@ -15,19 +15,16 @@
|
||||
#include <xenia/core.h>
|
||||
#include <xenia/xbox.h>
|
||||
|
||||
|
||||
XEDECLARECLASS1(xe, Emulator);
|
||||
XEDECLARECLASS2(xe, cpu, Processor);
|
||||
|
||||
|
||||
namespace xe {
|
||||
namespace hid {
|
||||
|
||||
class InputDriver;
|
||||
|
||||
|
||||
class InputSystem {
|
||||
public:
|
||||
public:
|
||||
InputSystem(Emulator* emulator);
|
||||
~InputSystem();
|
||||
|
||||
@@ -39,24 +36,22 @@ public:
|
||||
|
||||
void AddDriver(InputDriver* driver);
|
||||
|
||||
X_RESULT GetCapabilities(
|
||||
uint32_t user_index, uint32_t flags, X_INPUT_CAPABILITIES& out_caps);
|
||||
X_RESULT GetState(uint32_t user_index, X_INPUT_STATE& out_state);
|
||||
X_RESULT SetState(uint32_t user_index, X_INPUT_VIBRATION& vibration);
|
||||
X_RESULT GetCapabilities(uint32_t user_index, uint32_t flags,
|
||||
X_INPUT_CAPABILITIES* out_caps);
|
||||
X_RESULT GetState(uint32_t user_index, X_INPUT_STATE* out_state);
|
||||
X_RESULT SetState(uint32_t user_index, X_INPUT_VIBRATION* vibration);
|
||||
X_RESULT GetKeystroke(uint32_t user_index, uint32_t flags,
|
||||
X_INPUT_KEYSTROKE& out_keystroke);
|
||||
X_INPUT_KEYSTROKE* out_keystroke);
|
||||
|
||||
private:
|
||||
Emulator* emulator_;
|
||||
Memory* memory_;
|
||||
cpu::Processor* processor_;
|
||||
private:
|
||||
Emulator* emulator_;
|
||||
Memory* memory_;
|
||||
cpu::Processor* processor_;
|
||||
|
||||
std::vector<InputDriver*> drivers_;
|
||||
};
|
||||
|
||||
|
||||
} // namespace hid
|
||||
} // namespace xe
|
||||
|
||||
|
||||
#endif // XENIA_HID_INPUT_SYSTEM_H_
|
||||
|
||||
Reference in New Issue
Block a user