initial commit

This commit is contained in:
Carter Essen committed 2026-11-09 17:35:03 -05:00
commit cff2a21efc
550 files changed
+154887

No files matched your search

@@ -0,0 +1,46 @@
/**
* @file lv_sdl_keyboard.h
*
*/
#ifndef LV_SDL_KEYBOARD_H
#define LV_SDL_KEYBOARD_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "lv_sdl_window.h"
#if LV_USE_SDL
/*********************
* DEFINES
*********************/
#ifndef KEYBOARD_BUFFER_SIZE
#define KEYBOARD_BUFFER_SIZE 32
#endif
/**********************
* TYPEDEFS
**********************/
/**********************
* GLOBAL PROTOTYPES
**********************/
lv_indev_t * lv_sdl_keyboard_create(void);
/**********************
* MACROS
**********************/
#endif /*LV_USE_SDL*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* LV_SDL_KEYBOARD_H */
@@ -0,0 +1,43 @@
/**
* @file lv_sdl_mouse.h
*
*/
#ifndef LV_SDL_MOUSE_H
#define LV_SDL_MOUSE_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "lv_sdl_window.h"
#if LV_USE_SDL
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
**********************/
/**********************
* GLOBAL PROTOTYPES
**********************/
lv_indev_t * lv_sdl_mouse_create(void);
/**********************
* MACROS
**********************/
#endif /*LV_USE_SDL*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* LV_SDL_MOUSE_H */
@@ -0,0 +1,43 @@
/**
* @file lv_sdl_mousewheel.h
*
*/
#ifndef LV_SDL_MOUSEWHEEL_H
#define LV_SDL_MOUSEWHEEL_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "lv_sdl_window.h"
#if LV_USE_SDL && LV_SDL_MOUSEWHEEL_MODE == LV_SDL_MOUSEWHEEL_MODE_ENCODER
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
**********************/
/**********************
* GLOBAL PROTOTYPES
**********************/
lv_indev_t * lv_sdl_mousewheel_create(void);
/**********************
* MACROS
**********************/
#endif /*LV_USE_SDL*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* LV_DEV_SDL_MOUSEWHEEL_H */
@@ -0,0 +1,49 @@
/**
* @file lv_sdl_private.h
*
*/
#ifndef LV_SDL_PRIVATE_H
#define LV_SDL_PRIVATE_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "../../misc/lv_types.h"
#if LV_USE_SDL
#include LV_SDL_INCLUDE_PATH
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
**********************/
/**********************
* GLOBAL PROTOTYPES
**********************/
void lv_sdl_keyboard_handler(SDL_Event * event);
void lv_sdl_mouse_handler(SDL_Event * event);
void lv_sdl_mousewheel_handler(SDL_Event * event);
lv_display_t * lv_sdl_get_disp_from_win_id(uint32_t win_id);
/**********************
* MACROS
**********************/
#endif /*LV_USE_SDL*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* LV_SDL_PRIVATE_H */
@@ -0,0 +1,62 @@
/**
* @file lv_sdl_window.h
*
*/
#ifndef LV_SDL_WINDOW_H
#define LV_SDL_WINDOW_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "../../display/lv_display.h"
#include "../../indev/lv_indev.h"
#if LV_USE_SDL
/*********************
* DEFINES
*********************/
/* Possible values of LV_SDL_MOUSEWHEEL_MODE */
#define LV_SDL_MOUSEWHEEL_MODE_ENCODER 0 /* The mousewheel emulates an encoder input device*/
#define LV_SDL_MOUSEWHEEL_MODE_CROWN 1 /* The mousewheel emulates a smart watch crown*/
/**********************
* TYPEDEFS
**********************/
/**********************
* GLOBAL PROTOTYPES
**********************/
lv_display_t * lv_sdl_window_create(int32_t hor_res, int32_t ver_res);
void lv_sdl_window_set_resizeable(lv_display_t * disp, bool value);
void lv_sdl_window_set_zoom(lv_display_t * disp, uint8_t zoom);
uint8_t lv_sdl_window_get_zoom(lv_display_t * disp);
void lv_sdl_window_set_title(lv_display_t * disp, const char * title);
void * lv_sdl_window_get_renderer(lv_display_t * disp);
void lv_sdl_quit(void);
/**********************
* MACROS
**********************/
#endif /* LV_DRV_SDL */
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* LV_SDL_WINDOW_H */