mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-24 15:01:03 +00:00
Use Service::HID::PadState instead of internal states
This commit is contained in:
parent
f1039f8b05
commit
2547423835
@ -5,32 +5,16 @@
|
||||
#pragma once
|
||||
|
||||
#include "common/common_types.h"
|
||||
#include "core/hle/service/hid/hid.h"
|
||||
|
||||
namespace InputCommon {
|
||||
|
||||
enum ControllerButtons {
|
||||
A = 0,
|
||||
B,
|
||||
X,
|
||||
Y,
|
||||
L,
|
||||
R,
|
||||
ZL,
|
||||
ZR,
|
||||
START,
|
||||
SELECT,
|
||||
HOME,
|
||||
DPAD_LEFT,
|
||||
DPAD_RIGHT,
|
||||
DPAD_UP,
|
||||
DPAD_DOWN
|
||||
};
|
||||
|
||||
struct ControllerState {
|
||||
bool buttons[15];
|
||||
Service::HID::PadState jpad_state;
|
||||
s16 circle_pad_x;
|
||||
s16 circle_pad_y;
|
||||
u16 touch_screen_x;
|
||||
u16 touch_screen_y;
|
||||
};
|
||||
|
||||
} //namespace
|
||||
|
@ -6,7 +6,6 @@
|
||||
|
||||
#include "common/common_types.h"
|
||||
#include "controller_state.h"
|
||||
#include "core/hle/service/hid/hid.h"
|
||||
|
||||
namespace InputCommon {
|
||||
|
||||
@ -32,7 +31,7 @@ public:
|
||||
|
||||
private:
|
||||
|
||||
///Internal view this specific object will have of 3DS input states, NOT the same as Service::HID::PadState!
|
||||
///Internal view this specific object will have of 3DS input states
|
||||
ControllerState controller_state;
|
||||
|
||||
///Internal name of currently selected device
|
||||
|
Loading…
Reference in New Issue
Block a user