Skip to content

Convert mouse APIs to output floats #2436

Open
@Starbuck5

Description

@Starbuck5

Currently things like mouse.get_pos, mouse.get_rel, pos and rel attributes of MOUSEBUTTONUP and MOUSEBUTTONDOWN, x and y attributes of MOUSEWHEEL are all output as int values.

See #2428 and #2429.

In SDL3, the underlying SDL APIs output floats, so we should as well. In case this causes someone's code to break, I say we push this for a pygame3/sdl3 release. We don't want to make a bunch of huge changes in a pygame3/sdl3 release, but in my opinion this is a good change to make then.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions