view render_sdl.h @ 1960:f79e16d8baa4

megawifi: stub common commands to get config. * CMD_AP_CFG_GET * CMD_IP_CFG_GET * CMD_DEF_AP_CFG_GET * CMD_SERVER_URL_GET
author doragasu <doragasu@hotmail.com>
date Sun, 03 May 2020 12:39:05 -0700
parents e07fc3d473b2
children 6a07b13894f7
line wrap: on
line source

#ifndef RENDER_SDL_H_
#define RENDER_SDL_H_

#include <SDL.h>

SDL_Window *render_get_window(void);
typedef void (*event_handler)(SDL_Event *);
void render_update_display(void);
void render_set_event_handler(event_handler handler);
SDL_Joystick *render_get_joystick(int index);
SDL_GameController *render_get_controller(int index);
int render_lookup_button(char *name);
int render_lookup_axis(char *name);
void render_enable_gamepad_events(uint8_t enabled);

#endif //RENDER_SDL_H_