NAP
SDLAppEventHandler Class Reference

#include <sdlappeventhandler.h>

Public Member Functions

 SDLAppEventHandler (App &app)
 
virtual void start () override
 
virtual void process () override
 
virtual void shutdown () override
 
- Public Member Functions inherited from AppEventHandler
 AppEventHandler (BaseApp &app)
 
virtual ~AppEventHandler ()=default
 
 AppEventHandler (AppEventHandler &)=delete
 
AppEventHandleroperator= (const AppEventHandler &)=delete
 
 AppEventHandler (AppEventHandler &&)=delete
 
AppEventHandleroperator= (AppEventHandler &&)=delete
 
template<typename T >
T & getApp ()
 

Additional Inherited Members

- Protected Attributes inherited from AppEventHandler
BaseAppmApp
 

Detailed Description

Default application event handler. Forwards key, mouse and window events to the running application

Inheritance diagram for SDLAppEventHandler:
[legend]
Collaboration diagram for SDLAppEventHandler:
[legend]

Constructor & Destructor Documentation

◆ SDLAppEventHandler()

SDLAppEventHandler ( App app)

Member Function Documentation

◆ process()

virtual void process ( )
overridevirtual

This call polls SDL for various messages, translates those messages in nap events and forwards those to the default nap application

Reimplemented from AppEventHandler.

◆ shutdown()

virtual void shutdown ( )
overridevirtual

This call deletes the input converter

Reimplemented from AppEventHandler.

◆ start()

virtual void start ( )
overridevirtual

This call creates the SDL Input Converter

Reimplemented from AppEventHandler.