about summary refs log tree commit diff
path: root/src/game/client/components/controls.hpp
blob: d875522a5f91f0712eedecb4053d74fca5a6b5b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <base/vmath.hpp>
#include <game/client/component.hpp>

class CONTROLS : public COMPONENT
{	
public:
	vec2 mouse_pos;
	vec2 target_pos;

	NETOBJ_PLAYER_INPUT input_data;
	int input_direction_left;
	int input_direction_right;

	CONTROLS();
	virtual bool on_mousemove(float x, float y);
	virtual void on_init();
	
	int snapinput(int *data);
};