OpenGothic icon indicating copy to clipboard operation
OpenGothic copied to clipboard

Mouse controls

Open n3roxe opened this issue 2 years ago • 4 comments

Hi, in my case mouse camera controls doesnt work properly on linux. I can control the camera only when holding left mouse button - so cant turn and look down/up like you normally do when when walking.

Im on steam deck, but this happen with usb mouse too.

n3roxe avatar Aug 15 '22 14:08 n3roxe

Hi, @n3roxe and thank for bugreport!

In game intent is to have kind of controls, that you described only in Windowed mode. Assuming that you are building from sources, can you try to make a quick change to lib/Tempest/Engine/system/systemapi.cpp:

bool SystemApi::isFullscreen(SystemApi::Window *w) {
-  return inst().implIsFullscreen(w);
+  return true;
  }

Im on steam deck

That's coll, never had opportunity/time to test it on steam-desk myself . It would be great if you can share experience on how game runs or some screenshoots.

Try avatar Aug 15 '22 21:08 Try

298954452_528434622389061_6642868526831031386_n

I didnt build it from sources, i just ran gothic 2 through steam and luxtorpeda compatibility layer. It downloaded open gothic automatically and works with 0 tinkering.

As for performance, its definitely heavier than OG gothic. But OG gothic had problem with no background music on my system. Cloud shadows are very heavy on the gpu. Even without them, its barely doing 60 frames. There are drops in city due to cpu, and drops due to GPU in heavy scenarios like close look at the campfire for example. But when locked at 50 frames it plays well. I didnt discover much bugs, it doesnt stutter, audio is good. All around pretty playable and blast to play on a handheld device.

That camera control is annoying though, thats why i reported an issue.

n3roxe avatar Aug 16 '22 01:08 n3roxe

I also tested the game on Deck for a minute, works like this:

  • game mode - runs full 45 FPS (my screen refresh rate), no mouse look, ~~not even with the Tempest patch~~ EDIT: the patched binary is by default overwritten by Luxtorpeda, I don't actually yet know the resulf when Tempest is patched
  • desktop mode - runs poorly, but the mouse look works even with the official binary

Nindaleth avatar Aug 30 '22 18:08 Nindaleth

bool SystemApi::isFullscreen(SystemApi::Window *w) {
-  return inst().implIsFullscreen(w);
+  return true;
  }

I'm happy to report that this patch allows controlling the camera on Steam Deck without keeping left mouse button pressed.

(originally I was running a different binary than expected, as Luxtorpeda replaced my build with the official release binaries on every launch, thus my confusion)

Nindaleth avatar Sep 06 '22 22:09 Nindaleth