Unravel Engine C++ Reference
Loading...
Searching...
No Matches
keyboard.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "device.hpp"
4#include "key.hpp"
5#include "key_state.hpp"
6
7namespace input
8{
9class keyboard : public input_device
10{
11public:
15
16 virtual auto get_key_state(key_code key) const -> key_state = 0;
17 virtual auto is_down(key_code key) const -> bool = 0;
18 virtual auto is_pressed(key_code key) const -> bool = 0;
19 virtual auto is_released(key_code key) const -> bool = 0;
20
21};
22} // namespace input
virtual auto is_pressed(key_code key) const -> bool=0
virtual auto is_released(key_code key) const -> bool=0
virtual auto is_down(key_code key) const -> bool=0
virtual auto get_key_state(key_code key) const -> key_state=0
key_code
Definition key.hpp:6