mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-23 16:07:52 -05:00
40 lines
No EOL
733 B
C++
Vendored
40 lines
No EOL
733 B
C++
Vendored
#ifndef __CC_CONTROLLER_HANDLER_WIN32_H__
|
|
#define __CC_CONTROLLER_HANDLER_WIN32_H__
|
|
|
|
#include "../../include/ccMacros.h"
|
|
#include "CCStdC.h"
|
|
#include "CCControllerState.h"
|
|
#include <Xinput.h>
|
|
|
|
NS_CC_BEGIN
|
|
|
|
class CC_DLL CCControllerHandler
|
|
{
|
|
GEODE_FRIEND_MODIFY
|
|
public:
|
|
//CCControllerHandler();
|
|
//CCControllerState getState();
|
|
//void updateConnected();
|
|
|
|
XINPUT_STATE m_xinputState;
|
|
int m_userIndex;
|
|
bool m_controllerConnected;
|
|
bool m_dpadUp;
|
|
bool m_dpadDown;
|
|
bool m_dpadLeft;
|
|
bool m_dpadRight;
|
|
bool m_start;
|
|
bool m_back;
|
|
bool m_lt;
|
|
bool m_rt;
|
|
bool m_lb;
|
|
bool m_rb;
|
|
bool m_buttonA;
|
|
bool m_buttonB;
|
|
bool m_buttonX;
|
|
bool m_buttonY;
|
|
};
|
|
|
|
NS_CC_END
|
|
|
|
#endif |