ddnet/src/game/client/components/controls.hpp

21 lines
407 B
C++
Raw Normal View History

#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 void on_message(int msg, void *rawmsg);
virtual bool on_mousemove(float x, float y);
2008-09-04 21:36:44 +00:00
virtual void on_console_init();
int snapinput(int *data);
};