mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-10-22 19:22:04 +00:00
Mouse hover and click in split-screen was broken: the coordinate conversion from window pixels to Flash/SWF space did not account for the viewport tile-origin offset or the smaller display dimensions of each splitscreen quadrant. Now the mouse position is mapped through three steps: window pixels to UIController screen space, subtract the viewport origin (which varies per quadrant/split type), then scale from display size to SWF authoring size. This fixes hover highlighting and click targeting in all splitscreen layouts. Mouse input was also bleeding into other splitscreen players' UI groups because the scene lookup iterated all groups. Now it only checks the fullscreen group and the primary (KBM) player's group, so controller players' menus are never affected by mouse movement. Mouse grab/release (cursor lock for gameplay) was triggering for every local player's tick, causing fights between splitscreen players over the cursor state. Now only the primary pad player controls grab state. The in-game keyboard scene in PC mode had no cursor movement: typing always appended at the end and backspace always deleted from the end. Added a cursor position tracker (m_iCursorPos) so that characters are inserted at the cursor, backspace deletes behind it, and arrow keys, Home, End, and Delete all work as expected. The Flash caret is synced to the cursor position each tick. Also stopped syncing the text buffer back from Flash in PC mode, which was resetting the cursor every tick. Arrow keys in PC mode no longer get forwarded to Flash (which would move the on-screen keyboard selector instead of the text cursor). AddLocalPlayerByUserIndex was calling NotifyPlayerJoined before the IQNet slot was actually registered, passing a pointer obtained via GetLocalPlayerByUserIndex which checks customData (not set yet at that point). Now AddLocalPlayerByUserIndex is called first, and if it succeeds, the notification uses the static m_player array directly. The stub AddLocalPlayerByUserIndex now properly initialises the slot with gamertag and remote/host flags instead of being a no-op. IsSignedIn was hardcoded to return true only for pad 0, preventing splitscreen players from joining. Now it checks IsPadConnected so any connected controller can sign in. GetXUID returned INVALID_XUID for all pads except 0, which broke splitscreen player identity. Now each pad gets a unique XUID derived from the base value plus the pad index. Pinned internal resolution to 1920x1080 and removed GetSystemMetrics auto-detection which was picking up the native monitor resolution and breaking the 16:9 assumption in the viewport math and Flash layout. DPI awareness is kept for consistent pixel coordinates. |
||
|---|---|---|
| .. | ||
| 4JLibs | ||
| Assert | ||
| Audio | ||
| DATA | ||
| Edge/Lib | ||
| GameConfig | ||
| Iggy | ||
| Leaderboards | ||
| Media | ||
| Miles | ||
| Network | ||
| Passphrase | ||
| PS3Extras | ||
| Sentient | ||
| Social | ||
| Sound | ||
| SPU_Tasks | ||
| XML | ||
| Minecraft_Macros.h | ||
| PS3_App.cpp | ||
| PS3_App.h | ||
| PS3_Minecraft.cpp | ||
| PS3_PlayerUID.cpp | ||
| PS3_PlayerUID.h | ||
| PS3_UIController.cpp | ||
| PS3_UIController.h | ||
| PS3ProductCodes.bin | ||
| Resource.h | ||
| targetver.h | ||
| Xbox_Awards_enum.h | ||
| Xbox_BuildVer.h | ||
| Xbox_Debug_enum.h | ||
| Xbox_Minecraft.cpp | ||
| Xbox_Utils.cpp | ||
| XboxGameMode.cpp | ||
| XboxGameMode.h | ||