Skip to content

Issue with IsQuitRequested()  #4

@ebadi

Description

@ebadi

IsQuitRequested() returns False after ESC is pressed.

player = pyplayerbase.ScenarioPlayer(
    ["filename", "--window", "60", "60", "800", "400", "--osc", sys.argv[1]])
b = False
while not b:
    b = player.IsQuitRequested()
    print("x", b)
    player.Frame(1)
    time.sleep(1)

The ESC is registered correctly (from log messages) but not properly passed to python by pybind11.

7.000: Quit requested from viewer - probably ESC button pressed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions