6#include "fifechan/genericinput.hpp"
9#include "fifechan/platform.hpp"
12#include "fifechan/exception.hpp"
13#include "fifechan/keyinput.hpp"
14#include "fifechan/mouseinput.hpp"
18 GenericInput::GenericInput() =
default;
23 keyInput.
setKey(Key(unicode));
24 keyInput.
setType(KeyInput::Type::Pressed);
32 keyInput.
setKey(Key(unicode));
33 keyInput.
setType(KeyInput::Type::Released);
44 mouseInput.
setType(MouseInput::Type::Pressed);
55 mouseInput.
setType(MouseInput::Type::Released);
65 mouseInput.
setType(MouseInput::Type::WheelMovedUp);
75 mouseInput.
setType(MouseInput::Type::WheelMovedDown);
85 mouseInput.
setType(MouseInput::Type::WheelMovedRight);
95 mouseInput.
setType(MouseInput::Type::WheelMovedLeft);
105 mouseInput.
setType(MouseInput::Type::Moved);
Used replacement tokens by configure_file():
void throwException(std::string const &message, std::source_location location=std::source_location::current())
Throw an Exception capturing the current source location.