geode/loader/include/Geode/cocos/platform/win32/CXBOXController.h

37 lines
694 B
C
Raw Normal View History

2024-05-14 02:22:47 -04:00
#ifndef __CXBOXCONTROLLER_WIN32_H__
#define __CXBOXCONTROLLER_WIN32_H__
#include "../../include/ccMacros.h"
#include "CCStdC.h"
#include "CCControllerState.h"
#include <Xinput.h>
2024-05-14 02:22:47 -04:00
class CC_DLL CXBOXController
{
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;
};
2024-05-14 02:22:47 -04:00
#endif