le2d v0.4.7
2D game engine framework
 
Loading...
Searching...
No Matches
le::console::Junction Class Reference

Dispatch events to terminal if active else to input router. More...

#include <le2d/console/junction.hpp>

Public Member Functions

 Junction (gsl::not_null< ITerminal * > terminal, gsl::not_null< input::Router * > router)
 
void dispatch (std::span< Event const > events, glm::ivec2 framebuffer_size) const
 

Detailed Description

Dispatch events to terminal if active else to input router.

Constructor & Destructor Documentation

◆ Junction()

le::console::Junction::Junction ( gsl::not_null< ITerminal * >  terminal,
gsl::not_null< input::Router * >  router 
)
inlineexplicit
Parameters
routerPersistent pointer to input router.
terminalPersistent pointer to terminal instance.

Member Function Documentation

◆ dispatch()

void le::console::Junction::dispatch ( std::span< Event const >  events,
glm::ivec2  framebuffer_size 
) const
Parameters
eventsEvent queue.
framebuffer_sizeSize of target framebuffer for terminal.

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