2008-08-27 15:48:50 +00:00
|
|
|
#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();
|
2008-09-13 05:57:11 +00:00
|
|
|
|
|
|
|
virtual void on_render();
|
2008-08-31 21:50:14 +00:00
|
|
|
virtual void on_message(int msg, void *rawmsg);
|
2008-08-27 15:48:50 +00:00
|
|
|
virtual bool on_mousemove(float x, float y);
|
2008-09-04 21:36:44 +00:00
|
|
|
virtual void on_console_init();
|
2008-08-27 15:48:50 +00:00
|
|
|
|
|
|
|
int snapinput(int *data);
|
|
|
|
};
|