17 lines
184 B
C++
17 lines
184 B
C++
#pragma once
|
|
|
|
#include "stdafx.h"
|
|
#include <Xinput.h>
|
|
|
|
class GamePad
|
|
{
|
|
private:
|
|
XINPUT_STATE _state;
|
|
|
|
bool Initialize();
|
|
|
|
public:
|
|
GamePad();
|
|
|
|
bool IsPressed(WORD button);
|
|
};
|