CorsixTH engine (the C++ part)
Open source implementation of Theme Hospital
Loading...
Searching...
No Matches
Functions
sdl_core.cpp File Reference
#include "sdl_core.h"
#include <SDL.h>
#include <array>
#include <cstdio>
#include <cstring>
#include <string_view>
#include "lua.hpp"
#include "lua_sdl.h"
#include "th_lua.h"

Functions

constexpr std::string_view dispatch_keydown ("keydown")
 
constexpr std::string_view dispatch_keyup ("keyup")
 
constexpr std::string_view dispatch_textinput ("textinput")
 
constexpr std::string_view dispatch_textediting ("textediting")
 
constexpr std::string_view dispatch_buttondown ("buttondown")
 
constexpr std::string_view dispatch_buttonup ("buttonup")
 
constexpr std::string_view dispatch_mousewheel ("mousewheel")
 
constexpr std::string_view dispatch_motion ("motion")
 
constexpr std::string_view dispatch_multigesture ("multigesture")
 
constexpr std::string_view dispatch_active ("active")
 
constexpr std::string_view dispatch_music_over ("music_over")
 
constexpr std::string_view dispatch_movie_over ("movie_over")
 
constexpr std::string_view dispatch_sound_over ("sound_over")
 
constexpr std::string_view dispatch_timer ("timer")
 
constexpr std::string_view dispatch_callback ("callback")
 
constexpr std::string_view dispatch_window_resize ("window_resize")
 
constexpr std::string_view dispatch_frame ("frame")
 
void mainloop (lua_State *L)
 
int luaopen_sdl (lua_State *L)
 

Function Documentation

◆ dispatch_active()

constexpr std::string_view dispatch_active ( "active"  )
constexpr

◆ dispatch_buttondown()

constexpr std::string_view dispatch_buttondown ( "buttondown"  )
constexpr

◆ dispatch_buttonup()

constexpr std::string_view dispatch_buttonup ( "buttonup"  )
constexpr

◆ dispatch_callback()

constexpr std::string_view dispatch_callback ( "callback"  )
constexpr

◆ dispatch_frame()

constexpr std::string_view dispatch_frame ( "frame"  )
constexpr

◆ dispatch_keydown()

constexpr std::string_view dispatch_keydown ( "keydown"  )
constexpr

◆ dispatch_keyup()

constexpr std::string_view dispatch_keyup ( "keyup"  )
constexpr

◆ dispatch_motion()

constexpr std::string_view dispatch_motion ( "motion"  )
constexpr

◆ dispatch_mousewheel()

constexpr std::string_view dispatch_mousewheel ( "mousewheel"  )
constexpr

◆ dispatch_movie_over()

constexpr std::string_view dispatch_movie_over ( "movie_over"  )
constexpr

◆ dispatch_multigesture()

constexpr std::string_view dispatch_multigesture ( "multigesture"  )
constexpr

◆ dispatch_music_over()

constexpr std::string_view dispatch_music_over ( "music_over"  )
constexpr

◆ dispatch_sound_over()

constexpr std::string_view dispatch_sound_over ( "sound_over"  )
constexpr

◆ dispatch_textediting()

constexpr std::string_view dispatch_textediting ( "textediting"  )
constexpr

◆ dispatch_textinput()

constexpr std::string_view dispatch_textinput ( "textinput"  )
constexpr

◆ dispatch_timer()

constexpr std::string_view dispatch_timer ( "timer"  )
constexpr

◆ dispatch_window_resize()

constexpr std::string_view dispatch_window_resize ( "window_resize"  )
constexpr

◆ luaopen_sdl()

int luaopen_sdl ( lua_State L)

◆ mainloop()

void mainloop ( lua_State L)