Skip to content

Lua: emu.keypost() and PORT_TOGGLE do not mix #1329

@shattered

Description

@shattered
Contributor

A key with PORT_TOGGLE property should remain 'pressed' until released, but natural_keyboard immediately releases it.

How to demo: run mess ie15 -console and then emu.keypost(utf8.char(0x100066)) (that's PrtScr key)

Cursor should move to topmost row (setup line) and remain there.

Activity

ajrhacker

ajrhacker commented on Dec 1, 2016

@ajrhacker
Contributor

I have a fairly good idea of how to implement this. I'll note that the PORT_TOGGLE keyboard I tried first turned out to be one that shouldn't have had it in the first place (5878dd6).

ajrhacker

ajrhacker commented on Jan 1, 2017

@ajrhacker
Contributor

@shattered: Can you confirm that 9558460 fixes this?

shattered

shattered commented on Jan 5, 2017

@shattered
ContributorAuthor

New LUA engine broke all my regression tests -- emu.wait() is missing and emu.keypost(utf8.char()) doesn't post the expected chars. I'll try to backport this fix first.

shattered

shattered commented on Jan 15, 2017

@shattered
ContributorAuthor

good news: emu.keypost(utf8.char(0x10006a)) keeps the cursor on setup line. but next keypost() doesn't move it back.

emu.wait() issue is #1977

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @shattered@angelosa@ajrhacker

        Issue actions

          Lua: emu.keypost() and PORT_TOGGLE do not mix · Issue #1329 · mamedev/mame