SampleApp

The class containing the basic application logic and classes that are needed for the app.

Constructors

this
this()

Initializes every other things that wasn't initialized in other places.

Members

Functions

axisEvent
void axisEvent(uint id, BindingCode code, uint timestamp, float value)

Called when an axis event have done by the user. NOTE: Arguments will be changed once the move from SDL to iota is complete.

controllerAdded
void controllerAdded(uint id)

Called when a controller is added to the system. NOTE: Arguments will be changed once the move from SDL to iota is complete.

controllerRemoved
void controllerRemoved(uint id)

Called when a controller is removed from the system. Note: Arguments will be changed once the move from SDL to iota is complete.

keyEvent
void keyEvent(uint id, BindingCode code, uint timestamp, bool isPressed)

Called when a key event have done by the user. NOTE: Arguments will be changed once the move from SDL to iota is complete.

onQuit
void onQuit()

Called when the user exits from the application.

rasterRefresh
void rasterRefresh()

Optional. Reduces unneeded screen updates and thus the CPU usage, which might be useful for GUI applications, especially on battery powered devices. However, this can interfere with other things, like non-GUI related screen updates, input-latency, etc.

whereTheMagicHappens
void whereTheMagicHappens()

Function that contains the main loop

Variables

flipScreen
bool flipScreen;
Undocumented in source.
ih
InputHandler ih;
Undocumented in source.
isRunning
bool isRunning;
Undocumented in source.
mainRaster
Raster mainRaster;
Undocumented in source.
outScrn
OutputScreen outScrn;
Undocumented in source.
sprtL
SpriteLayer sprtL;
Undocumented in source.
wh
WindowHandler wh;
Undocumented in source.

Meta