diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2024-01-29 23:58:04 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2024-01-30 01:16:18 +0100 |
| commit | a27a35bd778d9afe9f04e7aed69d950bc4d980e8 (patch) | |
| tree | cad17cb68da4a210538c15a7fba2289374c4fcc1 /src/pad | |
| parent | c2e2343054e8d11ebaaf426d6ca105e79e93da6a (diff) | |
| download | jancity-a27a35bd778d9afe9f04e7aed69d950bc4d980e8.tar.gz | |
WIP ESP32 port
Diffstat (limited to 'src/pad')
| -rw-r--r-- | src/pad/CMakeLists.txt | 3 | ||||
| -rw-r--r-- | src/pad/esp32/inc/pad/port.h | 18 | ||||
| -rw-r--r-- | src/pad/esp32/src/pad.c | 20 |
3 files changed, 41 insertions, 0 deletions
diff --git a/src/pad/CMakeLists.txt b/src/pad/CMakeLists.txt index 6470865..c85499a 100644 --- a/src/pad/CMakeLists.txt +++ b/src/pad/CMakeLists.txt @@ -10,6 +10,9 @@ elseif(SDL1_2_BUILD) set(src ${src} "sdl-1.2/src/pad.c") set(inc ${inc} "sdl-1.2/inc") set(deps ${deps} SDL::SDL) +elseif(ESP32_BUILD) + set(src ${src} "esp32/src/pad.c") + set(inc ${inc} "esp32/inc") endif() add_library(pad ${src}) diff --git a/src/pad/esp32/inc/pad/port.h b/src/pad/esp32/inc/pad/port.h new file mode 100644 index 0000000..3f42422 --- /dev/null +++ b/src/pad/esp32/inc/pad/port.h @@ -0,0 +1,18 @@ +#ifndef PAD_ESP32_H +#define PAD_ESP32_H + +#ifdef __cplusplus +extern "C" +{ +#endif + +struct pad_port +{ + int dummy; +}; + +#ifdef __cplusplus +} +#endif + +#endif /* PAD_SDL_1_2_H */ diff --git a/src/pad/esp32/src/pad.c b/src/pad/esp32/src/pad.c new file mode 100644 index 0000000..78dd24d --- /dev/null +++ b/src/pad/esp32/src/pad.c @@ -0,0 +1,20 @@ +#include <pad.h> +#include <stdio.h> + +void pad_port_update(struct pad *const p) +{ +} + +void pad_init(const int id, struct pad *const p) +{ +} + +size_t pad_count(void) +{ + return 1; +} + +const char *pad_name(const int id) +{ + return NULL; +} |
