More moving stuff around
git-svn-id: https://aklabs.dyndns.org/svn/aklabs/trunk/games/spaceshooter@52 eb184899-6090-47d4-a65b-558f62f6ea1c
This commit is contained in:
16
cpp/Control.h
Executable file
16
cpp/Control.h
Executable file
@@ -0,0 +1,16 @@
|
||||
#ifndef __CONTROL_H__
|
||||
#define __CONTROL_H__
|
||||
|
||||
struct Controller
|
||||
{
|
||||
int joyNum; // set to > -1 to get the number of the joystick used to control this item
|
||||
int keyBoard; // set to 1 to let the keyboard control this player
|
||||
int mouse; // set to 1 to let the mouse control this player
|
||||
Controller( int joyNum = -1, int keyBoard = 0, int mouse = 0) {
|
||||
this->joyNum = joyNum;
|
||||
this->keyBoard = keyBoard;
|
||||
this->mouse = mouse;
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user