Partially implemented Windows keyboard HID for testing.
This commit is contained in:
50
src/xenia/hid/winkey/winkey_input_driver.h
Normal file
50
src/xenia/hid/winkey/winkey_input_driver.h
Normal file
@@ -0,0 +1,50 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* Xenia : Xbox 360 Emulator Research Project *
|
||||
******************************************************************************
|
||||
* Copyright 2014 Ben Vanik. All rights reserved. *
|
||||
* Released under the BSD license - see LICENSE in the root for more details. *
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef XENIA_HID_WINKEY_WINKEY_DRIVER_H_
|
||||
#define XENIA_HID_WINKEY_WINKEY_DRIVER_H_
|
||||
|
||||
#include <xenia/core.h>
|
||||
|
||||
#include <xenia/hid/input_driver.h>
|
||||
#include <xenia/hid/nop/nop_hid-private.h>
|
||||
|
||||
|
||||
namespace xe {
|
||||
namespace hid {
|
||||
namespace winkey {
|
||||
|
||||
|
||||
class WinKeyInputDriver : public InputDriver {
|
||||
public:
|
||||
WinKeyInputDriver(InputSystem* input_system);
|
||||
virtual ~WinKeyInputDriver();
|
||||
|
||||
virtual X_STATUS Setup();
|
||||
|
||||
virtual X_RESULT GetCapabilities(
|
||||
uint32_t user_index, uint32_t flags, X_INPUT_CAPABILITIES& out_caps);
|
||||
virtual X_RESULT GetState(
|
||||
uint32_t user_index, X_INPUT_STATE& out_state);
|
||||
virtual X_RESULT SetState(
|
||||
uint32_t user_index, X_INPUT_VIBRATION& vibration);
|
||||
virtual X_RESULT GetKeystroke(
|
||||
uint32_t user_index, uint32_t flags, X_INPUT_KEYSTROKE& out_keystroke);
|
||||
|
||||
protected:
|
||||
uint32_t packet_number_;
|
||||
};
|
||||
|
||||
|
||||
} // namespace winkey
|
||||
} // namespace hid
|
||||
} // namespace xe
|
||||
|
||||
|
||||
#endif // XENIA_HID_WINKEY_WINKEY_DRIVER_H_
|
||||
Reference in New Issue
Block a user