Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INKEY With Negative values #43

Closed
StefanMyczko opened this issue May 3, 2023 · 1 comment
Closed

INKEY With Negative values #43

StefanMyczko opened this issue May 3, 2023 · 1 comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request

Comments

@StefanMyczko
Copy link

INKEY does not appear to support the option to use negative numbers to check if a particular key is being pressed, it looks as if its treating the negative as just a large number and waiting a long time before continuing.

From https://www.bbcbasic.co.uk/bbcwin/tutorial/chapter13.html

INKEY (not INKEY$) has an extended functionality in that it can be used to test for individual keys being pressed. To do this, we give it a negative argument. The table of values used to represent the required key is not related to the ASCII code and is given in full in the help files under INKEY / INKEY$. When used in this way, it returns immediately with a value of TRUE (–1) or FALSE (0) depending on whether the required key was pressed. Again, this is really good for games:

@breakintoprogram breakintoprogram added the enhancement New feature or request label May 12, 2023
@breakintoprogram
Copy link
Owner

Closing as this is a duplicate of #56

@breakintoprogram breakintoprogram closed this as not planned Won't fix, can't repro, duplicate, stale Jul 9, 2023
@breakintoprogram breakintoprogram added the duplicate This issue or pull request already exists label Jul 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
Status: Won't Do
Development

No branches or pull requests

2 participants