Skip to content
This repository was archived by the owner on Feb 12, 2026. It is now read-only.
This repository was archived by the owner on Feb 12, 2026. It is now read-only.

Analog inputs can cause invalid values for Display Options #125

@Jesright73

Description

@Jesright73

Describe the bug
Analog inputs are read as floats instead of integers in the Display Options step event, which can result in non-boolean settings having invalid values.

To Reproduce

  1. Get analog input device (joystick, touch screen)
  2. go to display settings in game
  3. Change the setting of any non-boolean (e.g. Window Size, Metroid Counter, and Controller Tips) using the analog input.
  4. Sometimes [!] appears. Doing this with Window Size can also result in bad screen scaling.

Expected behavior
Changing settings with analog should never cause invalid values.

Media
image

Platform (please complete the following information):

  • OS: Any

Game Version:
1.5.5

Additional context
Simple fix: round the analog input values in the step event of oOptionsDisplay

- input = (oControl.kRight - oControl.kLeft)
+ input = (ceil(oControl.kRight) - ceil(oControl.kLeft))

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working the way it should

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions