wren
Vulkan-based game engine
Loading...
Searching...
No Matches
wren::Input Class Reference

#include <input.hpp>

Public Member Functions

void initialize (event::Dispatcher &dispatcher)
auto is_pressed (KeyCode key) const -> bool
auto is_pressed_down (KeyCode key) const -> bool
auto end_frame ()

Private Attributes

std::unordered_map< KeyCode, bool > pressed_
std::unordered_map< KeyCode, bool > pressed_down_

Member Function Documentation

◆ end_frame()

auto wren::Input::end_frame ( )
inline

◆ initialize()

void wren::Input::initialize ( event::Dispatcher & dispatcher)
Here is the call graph for this function:

◆ is_pressed()

auto wren::Input::is_pressed ( KeyCode key) const -> bool

◆ is_pressed_down()

auto wren::Input::is_pressed_down ( KeyCode key) const -> bool

Member Data Documentation

◆ pressed_

std::unordered_map<KeyCode, bool> wren::Input::pressed_
private

◆ pressed_down_

std::unordered_map<KeyCode, bool> wren::Input::pressed_down_
private

The documentation for this class was generated from the following files: