Skip to content

Commit

Permalink
Merge pull request #93 from ivan-ushakov/joystick-support-with-sdl
Browse files Browse the repository at this point in the history
Joystick support with SDL
  • Loading branch information
ivan-ushakov authored Feb 23, 2024
2 parents 697a06b + 5ca3183 commit 3f54cbb
Show file tree
Hide file tree
Showing 7 changed files with 185 additions and 520 deletions.
3 changes: 1 addition & 2 deletions MechoSoma/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,6 @@ set(GAME_SOURCES
Xreal/Handle.h
Xreal/HydrophobicObject.cpp
Xreal/HydrophobicObject.h
Xreal/Joystick
Xreal/LCP_ContactSolver.cpp
Xreal/LCP_ContactSolver.h
Xreal/LCP_Solver.cpp
Expand Down Expand Up @@ -446,7 +445,7 @@ set(GAME_SOURCES
Xreal/gen_xreal.h
Xreal/pt.cpp
# Xreal/Joystick
Xreal/Joystick/XJoystick_port.cpp
Xreal/Joystick/XJoystick.cpp
# iScreen
iScreen/SCRIPTS/SCR_DEFS.H
iScreen/ACS_CORE.CPP
Expand Down
11 changes: 10 additions & 1 deletion MechoSoma/XTool/xgraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,16 @@ void XGR_Mouse::SetCursor(int sx, int sy, int num, void* p)

void XGR_Mouse::SetPos(int x, int y)
{
// TODO
LastPosX = PosX;
LastPosY = PosY;

LastSizeX = SizeX;
LastSizeY = SizeY;

PosX = x;
PosY = y;

AdjustPos();
}

void XGR_Mouse::SetClipAuto(void)
Expand Down
Loading

0 comments on commit 3f54cbb

Please sign in to comment.