aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/system/InputSystem.h
blob: c50d928756b171a8929cf65dcf18282c51ad0aa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include "System.h"
#include "../api/Event.h"
namespace crepe {

class InputSystem : public System {
public:
	using System::System;
	InputSystem(ComponentManager & component_manager);
	void update() override;
	bool handle_click(const MouseClickEvent &event);
	bool handle_move(const MouseMoveEvent &event);
	bool handle_key_press(const KeyPressEvent &event);
	bool handle_key_release(const KeyReleaseEvent &event);
};

} // namespace crepe