Define cursor enum and custom cursor window message (#980)

* Define cursor enum and custom cursor window message

* Fix param name

* Remove unused header
This commit is contained in:
Christian Semmler
2024-06-01 10:07:58 -04:00
committed by GitHub
parent b67af71f33
commit df20b05510
12 changed files with 54 additions and 48 deletions

View File

@@ -2,7 +2,6 @@
#include "3dmanager/lego3dmanager.h"
#include "legoinputmanager.h"
#include "legonotify.h"
#include "legosoundmanager.h"
#include "legovideomanager.h"
#include "misc.h"
@@ -109,10 +108,10 @@ void LegoCameraController::OnRButtonUp(MxPoint32 p_point)
// FUNCTION: LEGO1 0x10012230
void LegoCameraController::OnMouseMove(MxU8 p_modifier, MxPoint32 p_point)
{
if (p_modifier & c_lButtonState) {
if (p_modifier & LegoEventNotificationParam::c_lButtonState) {
LeftDrag(p_point.GetX(), p_point.GetY());
}
else if (p_modifier & c_rButtonState) {
else if (p_modifier & LegoEventNotificationParam::c_rButtonState) {
RightDrag(p_point.GetX(), p_point.GetY());
}
}

View File

@@ -766,7 +766,7 @@ MxResult LegoWorld::Tickle()
switch (m_startupTicks) {
case e_start:
m_worldStarted = TRUE;
SetAppCursor(0);
SetAppCursor(e_cursorArrow);
ReadyWorld();
return TRUE;
case e_two: