Skip to content

Commit

Permalink
Game API v4.0.1: Add keyboard/mouse port IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
garbear committed Oct 22, 2021
1 parent 245d78d commit e506392
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions xbmc/addons/kodi-dev-kit/include/kodi/c-api/addon-instance/game.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,16 @@

//==============================================================================
/// @ingroup cpp_kodi_addon_game_Defs
/// @brief **Port ID used when topology is unknown**
/// @brief **Port ID used when topology is unknown. Shown in the GUI**
#define DEFAULT_PORT_ID "1"

/// @ingroup cpp_kodi_addon_game_Defs
/// @brief **Port ID used for keyboard input. Not shown in the GUI**
#define KEYBOARD_PORT_ID "keyboard"

/// @ingroup cpp_kodi_addon_game_Defs
/// @brief **Port ID used for mouse input. Not shown in the GUI**
#define MOUSE_PORT_ID "mouse"
//------------------------------------------------------------------------------

#ifdef __cplusplus
Expand Down Expand Up @@ -844,7 +852,7 @@ extern "C"
/// @brief
GAME_PORT_TYPE type;

/// @brief Required for GAME_PORT_CONTROLLER type
/// @brief
const char* port_id;

/// @brief
Expand Down
2 changes: 1 addition & 1 deletion xbmc/addons/kodi-dev-kit/include/kodi/versions.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
#define ADDON_INSTANCE_VERSION_AUDIOENCODER_DEPENDS "c-api/addon-instance/audio_encoder.h" \
"addon-instance/AudioEncoder.h"

#define ADDON_INSTANCE_VERSION_GAME "4.0.0"
#define ADDON_INSTANCE_VERSION_GAME "4.0.1"
#define ADDON_INSTANCE_VERSION_GAME_MIN "4.0.0"
#define ADDON_INSTANCE_VERSION_GAME_XML_ID "kodi.binary.instance.game"
#define ADDON_INSTANCE_VERSION_GAME_DEPENDS "addon-instance/Game.h"
Expand Down

0 comments on commit e506392

Please sign in to comment.