Skip to content

v0.8.1: gamepads on handhelds

Choose a tag to compare

@rodrireddev rodrireddev released this 26 Oct 18:01
· 5 commits to main since this release

Gamepads that misbehave, common on handheld consoles. On top of v0.8.0.

Gamepads

  • Sticks that don't rest at the center (like the analog sticks of the Anbernic RG35XX / RG40XX family, read by an uncalibrated converter) no longer make the character walk or the menu cursor scroll by themselves. The left stick counts once it has stayed still for a moment, and that spot becomes its center (it also follows the slow drift of these sticks). Before, a stick resting a little off center could look like "down" held all the time, and one resting further off center never worked at all.
  • A stick that isn't there (an input that reads random values) is ignored.
  • The same controller seen twice (two identical gamepads doing exactly the same thing at the same time) counts once: the copy no longer takes player 2, and the main menu counts one gamepad. If the copy is then used on its own, it counts as a real second controller.
  • A button or direction already pressed when the gamepad connects still doesn't count until it is released, and a gamepad connected with something stuck is no longer counted as a second player.
  • On the two-player character screen, if one of the two gamepads turns out to be a copy (or is disconnected), the players choose one after the other again instead of waiting for a second player.

Tested

With virtual gamepads that behave like those handhelds (a stick resting off center, a noisy stick near its edge, a floating stick, a controller seen twice, buttons held at connection): with v0.8.0 the character walked down by itself and the menu cursor ran away; now neither happens, and real pushes still move. One and two players choosing their characters, and the Pi, Linux and Windows builds.

Install / update

Download diablo2-port.zip (Pi and Linux) or diablo2-port-windows.zip (Windows) and replace the port; your saved games are kept. To play over the network, all machines need this same version.

This is a fan-made project, not affiliated with Blizzard Entertainment.