Integrated XBox360 controller support for camera and player movement.

This commit is contained in:
2025-03-18 00:34:08 -04:00
parent 0b9c5eb449
commit e547dd0045
7 changed files with 36 additions and 5 deletions

View File

@@ -7,6 +7,7 @@
#include <Core/Player.hpp>
#include <ReWindow/InputService.h>
#include <Core/Macros.hpp>
#include <jstick.hpp>
namespace CaveGame::ClientApp
{
@@ -90,6 +91,8 @@ namespace CaveGame::ClientApp
void CaveGameWindow::Run()
{
int js = jstick::Connect();
//this->SetRenderer(RenderingAPI::OPENGL);
bool success = this->Open();
@@ -223,6 +226,8 @@ namespace CaveGame::ClientApp
void CaveGameWindow::Update(float elapsed)
{
jstick::ReadEventLoop();
// Update floating windows.
wm->Update(elapsed);