Skip to content

Give better explanation on keyboard commands #1211

Description

@spotlessmind1975

Actually, the keyboard management in ugBASIC is oriented to arcade games, so it is not designed to handle string input or, in general, data entry. In recent times efforts was made to introduce a real "driver" for the keyboard, which however still has some gaps. On some chipsets, such as Thomson and Olivetti Prodest, I had to leave the old behavior as default, because the new one is lower in performance. The thing we should suggest in the manual is to use, where possible, KEY STATE(KEY ...) instead of INKEY$. Alternatively, the best thing is not to "mix them" because on some targets they might not give the expected result. So: either you always use INPUT / INKEY (asynchronous mode) or you always use KEY STATE / SCANCODE (synchronous mode).

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    Status
    No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions