Skip to content

Commit

Permalink
[Emscripten] Add missing gamepad functions
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Feb 3, 2024
1 parent 8f96c23 commit 7991015
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Backends/System/Emscripten/Sources/kinc/backend/gamepad.c.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include <kinc/input/gamepad.h>

const char *kinc_gamepad_vendor(int gamepad) {
return "None";
}

const char *kinc_gamepad_product_name(int gamepad) {
return "Gamepad";
}

bool kinc_gamepad_connected(int gamepad) {
return false;
}

void kinc_gamepad_rumble(int gamepad, float left, float right) {}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "audio.c.h"
#include "display.c.h"
#include "event.c.h"
#include "gamepad.c.h"
#include "mouse.c.h"
#include "mutex.c.h"
#include "semaphore.c.h"
Expand Down

0 comments on commit 7991015

Please sign in to comment.