Skip to content

Commit

Permalink
Merge pull request #68 from AlwinEsch/Matrix-change
Browse files Browse the repository at this point in the history
[Matrix] API related update
  • Loading branch information
AlwinEsch authored Sep 13, 2020
2 parents a8e6952 + dadb0d2 commit 54f3089
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ matrix:
sudo: required
compiler: gcc
env: DEBIAN_BUILD=true
- os: linux
dist: focal
sudo: required
compiler: gcc
env: DEBIAN_BUILD=true
- os: osx
osx_image: xcode10.2

Expand Down
2 changes: 1 addition & 1 deletion game.libretro/addon.xml.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="game.libretro"
name="Libretro Compatibility"
version="2.1.0"
version="2.2.0"
provider-name="Team Kodi">
<backwards-compatibility abi="1.0.0"/>
<requires>@ADDON_DEPENDS@</requires>
Expand Down
2 changes: 1 addition & 1 deletion src/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ void CGameLibRetro::FreeTopology(game_input_topology* topology)
CControllerTopology::FreeTopology(topology);
}

void CGameLibRetro::SetControllerLayouts(const std::vector<AddonGameControllerLayout>& controllers)
void CGameLibRetro::SetControllerLayouts(const std::vector<kodi::addon::GameControllerLayout>& controllers)
{
CInputManager::Get().SetControllerLayouts(controllers);
}
Expand Down
2 changes: 1 addition & 1 deletion src/client.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class ATTRIBUTE_HIDDEN CGameLibRetro
bool HasFeature(const std::string& controller_id, const std::string& feature_name) override;
game_input_topology* GetTopology() override;
void FreeTopology(game_input_topology* topology) override;
void SetControllerLayouts(const std::vector<AddonGameControllerLayout>& controllers) override;
void SetControllerLayouts(const std::vector<kodi::addon::GameControllerLayout>& controllers) override;
bool EnableKeyboard(bool enable, const std::string& controller_id) override;
bool EnableMouse(bool enable, const std::string& controller_id) override;
bool ConnectController(bool connect, const std::string& port_address, const std::string& controller_id) override;
Expand Down
2 changes: 1 addition & 1 deletion src/input/ControllerLayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

using namespace LIBRETRO;

CControllerLayout::CControllerLayout(const AddonGameControllerLayout& controller) :
CControllerLayout::CControllerLayout(const kodi::addon::GameControllerLayout& controller) :
m_controller(controller)
{
}
4 changes: 2 additions & 2 deletions src/input/ControllerLayout.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ namespace LIBRETRO
class CControllerLayout
{
public:
CControllerLayout(const AddonGameControllerLayout& controller);
CControllerLayout(const kodi::addon::GameControllerLayout& controller);

const std::string &ControllerID() const { return m_controller.controller_id; }
bool ProvidesInput() const { return m_controller.provides_input; }

private:
AddonGameControllerLayout m_controller;
kodi::addon::GameControllerLayout m_controller;
};
}
2 changes: 1 addition & 1 deletion src/input/InputManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ libretro_device_caps_t CInputManager::GetDeviceCaps(void) const
}


void CInputManager::SetControllerLayouts(const std::vector<AddonGameControllerLayout>& controllers)
void CInputManager::SetControllerLayouts(const std::vector<kodi::addon::GameControllerLayout>& controllers)
{
m_controllerLayouts.clear();

Expand Down
2 changes: 1 addition & 1 deletion src/input/InputManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ namespace LIBRETRO
/*!
* \brief
*/
void SetControllerLayouts(const std::vector<AddonGameControllerLayout>& controllers);
void SetControllerLayouts(const std::vector<kodi::addon::GameControllerLayout>& controllers);

/*!
* \brief Enable the keyboard
Expand Down

0 comments on commit 54f3089

Please sign in to comment.