mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-01-05 11:11:47 -06:00
Implemented D-Pad support for the World Map, Gaia Colossus, Super Sonic and the Bobsleigh (#150)
* Implemented D-Pad support for World Map, Super Sonic (WIP) and Bobsleigh * Implemented D-Pad support for Gaia Colossus and Super Sonic * Improved touchpad sensitivity
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
|
||||
#include <SWA.inl>
|
||||
#include <SWA/System/GameMode/WorldMap/WorldMapCursor.h>
|
||||
|
||||
namespace SWA
|
||||
{
|
||||
class CTitleStateWorldMap : public CTitleStateBase
|
||||
{
|
||||
public:
|
||||
SWA_INSERT_PADDING(0x08);
|
||||
xpointer<CWorldMapCursor> m_pWorldMapCursor;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
#include <SWA.inl>
|
||||
|
||||
namespace SWA
|
||||
{
|
||||
class CWorldMapCamera : public CCameraController
|
||||
{
|
||||
public:
|
||||
be<float> m_Pitch;
|
||||
be<float> m_Yaw;
|
||||
be<float> m_Distance;
|
||||
be<float> m_RotationSpeed;
|
||||
SWA_INSERT_PADDING(0x08);
|
||||
bool m_CanMove;
|
||||
SWA_INSERT_PADDING(0x34);
|
||||
be<float> m_TiltToEarthTransitionSpeed;
|
||||
};
|
||||
|
||||
SWA_ASSERT_OFFSETOF(CWorldMapCamera, m_Pitch, 0xD0);
|
||||
SWA_ASSERT_OFFSETOF(CWorldMapCamera, m_Yaw, 0xD4);
|
||||
SWA_ASSERT_OFFSETOF(CWorldMapCamera, m_Distance, 0xD8);
|
||||
SWA_ASSERT_OFFSETOF(CWorldMapCamera, m_RotationSpeed, 0xDC);
|
||||
SWA_ASSERT_OFFSETOF(CWorldMapCamera, m_CanMove, 0xE8);
|
||||
SWA_ASSERT_OFFSETOF(CWorldMapCamera, m_TiltToEarthTransitionSpeed, 0x120);
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
#include <SWA.inl>
|
||||
|
||||
namespace SWA
|
||||
{
|
||||
class CWorldMapCursor : public CMenuWindowBase
|
||||
{
|
||||
public:
|
||||
SWA_INSERT_PADDING(0x24);
|
||||
be<float> m_LeftStickVertical;
|
||||
be<float> m_LeftStickHorizontal;
|
||||
bool m_IsCursorMoving;
|
||||
SWA_INSERT_PADDING(0x07);
|
||||
be<float> m_CursorY;
|
||||
be<float> m_CursorX;
|
||||
};
|
||||
|
||||
SWA_ASSERT_OFFSETOF(CWorldMapCursor, m_LeftStickVertical, 0x34);
|
||||
SWA_ASSERT_OFFSETOF(CWorldMapCursor, m_LeftStickHorizontal, 0x38);
|
||||
SWA_ASSERT_OFFSETOF(CWorldMapCursor, m_IsCursorMoving, 0x3C);
|
||||
SWA_ASSERT_OFFSETOF(CWorldMapCursor, m_CursorY, 0x44);
|
||||
SWA_ASSERT_OFFSETOF(CWorldMapCursor, m_CursorX, 0x48);
|
||||
}
|
||||
Reference in New Issue
Block a user