Skip to content

Commit

Permalink
[nogpu] Inputs: add support for analogue joysticks, keyboard and mous…
Browse files Browse the repository at this point in the history
…e. Use mister as provider for -joystickprovider, -keyboardprovider and -mouseprovider.
  • Loading branch information
antonioginer committed Aug 3, 2024
1 parent 53e13d4 commit 161ffc2
Show file tree
Hide file tree
Showing 4 changed files with 532 additions and 134 deletions.
2 changes: 1 addition & 1 deletion src/osd/modules/input/input_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#define KEY_TRANS_WIN32(disc, virtual)
#endif

#if defined(OSD_SDL) || defined(SDLMAME_WIN32)
#if defined(OSD_SDL) || defined(SDLMAME_WIN32) || defined(MISTER_INPUT)
#include <SDL2/SDL.h>
#define KEY_TRANS_SDL(sdlsc) SDL_SCANCODE_##sdlsc,
#else
Expand Down
3 changes: 2 additions & 1 deletion src/osd/modules/input/input_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <mutex>
#include <queue>

#define MISTER_INPUT 1

//============================================================
// PARAMETERS
Expand Down Expand Up @@ -189,7 +190,7 @@ struct key_trans_entry
{
input_item_id mame_key;

#if defined(OSD_SDL) || defined(SDLMAME_WIN32)
#if defined(OSD_SDL) || defined(SDLMAME_WIN32) || defined(MISTER_INPUT)
int sdl_scancode;
#endif
#if defined(OSD_WINDOWS) || defined(SDLMAME_WIN32)
Expand Down
Loading

0 comments on commit 161ffc2

Please sign in to comment.