Files
CrystalPoint/Controller.h
T
jancoow ba0482ee0a Merge remote-tracking branch 'origin/developer' into feature/weaponCollision
Added waeponswitch to backbutton of controller

# Conflicts:
#	Enemy.cpp
#	Player.cpp
#	Weapon.cpp
#	Weapon.h
2016-06-21 23:10:58 +02:00

21 lines
426 B
C++

#pragma once
#include "Vector.h"
class Controller{
public:
Controller(int controllerId);
~Controller();
Vec3f ypr;
Vec2f joystick;
bool button, joystickButton, magnetSwitch;
bool lastButton, lastJoystickButton, lastMagetSwitch;
int controllerId;
void setConnected(bool connected);
bool isConnected(void);
void rumble(int duration, int power);
private:
bool connected = false;
};