matf-rg-engine  1.0.0
Base for project for the Computer Graphics course at Faculty of Mathematics, University of Belgrade
Public Member Functions | List of all members
engine::test::app::MainPlatformEventObserver Class Referencefinal

#include <MainController.hpp>

Inheritance diagram for engine::test::app::MainPlatformEventObserver:
Inheritance graph
[legend]
Collaboration diagram for engine::test::app::MainPlatformEventObserver:
Collaboration graph
[legend]

Public Member Functions

void on_key (engine::platform::Key key) override
 Called by engine::platform::PlatformController for every frame in an event occurred on the keyboard or mouse key. More...
 
void on_mouse_move (engine::platform::MousePosition position) override
 Called by engine::platform::PlatformController for every frame in which the mouse moved. More...
 
- Public Member Functions inherited from engine::platform::PlatformEventObserver
virtual void on_window_resize (int width, int height)
 Called by engine::platform::PlatformController when the window is resized. More...
 
virtual ~PlatformEventObserver ()=default
 

Member Function Documentation

◆ on_key()

void engine::test::app::MainPlatformEventObserver::on_key ( engine::platform::Key  key)
overridevirtual

Called by engine::platform::PlatformController for every frame in an event occurred on the keyboard or mouse key.

Reimplemented from engine::platform::PlatformEventObserver.

◆ on_mouse_move()

void engine::test::app::MainPlatformEventObserver::on_mouse_move ( engine::platform::MousePosition  position)
overridevirtual

Called by engine::platform::PlatformController for every frame in which the mouse moved.

Reimplemented from engine::platform::PlatformEventObserver.


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