Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • joeylib joeylib
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 10
    • Issues 10
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Public SkunkworksPublic Skunkworks
  • joeylibjoeylib
  • Wiki
  • JoeyLib Keyboard Functions

JoeyLib Keyboard Functions · Changes

Page history
scott created page: JoeyLib Keyboard Functions authored Sep 06, 2018 by Scott Duensing's avatar Scott Duensing
Hide whitespace changes
Inline Side-by-side
JoeyLib-Keyboard-Functions.md 0 → 100644
View page @ d2724ab6
*Keyboard input is currently very basic. There is no support for multiple simultaneous keys to be pressed at this time.*
#### jlKeyPressed
```c
bool jlKeyPressed(void);
```
Returns `true` if a key is currently being pressed.
####
```c
char jlKeyRead(void);
```
Returns the ASCII value of the last key pressed. If the user presses and releases a key, the value will remain available until cleared by `jlKeyRead`. Key presses are not buffered. If the user presses and releases more than one key before you read it, you will only get the last one pressed. Only common ASCII values are supported. Special keys are filtered out.
####
```c
void jlKeyWaitForAny(void);
```
A convenience function. Just waits for any key to be pressed and released.
\ No newline at end of file
Clone repository
  • Build Server Virtual Machine
  • Installation
  • JoeyLib API
  • JoeyLib Concepts
  • JoeyLib Data Types
  • JoeyLib Definitions
  • JoeyLib Display Functions
  • JoeyLib Drawing Functions
  • JoeyLib Enumerations
  • JoeyLib Formats
  • JoeyLib Gamepad Functions
  • JoeyLib Keyboard Functions
  • JoeyLib Memory Functions
  • JoeyLib Palette Functions
  • JoeyLib Sound Functions
View All Pages