Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • 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 11
    • Issues 11
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Public Skunkworks
  • joeylibjoeylib
  • Wiki
  • JoeyLib Keyboard Functions

Last edited by Scott Duensing Sep 06, 2018
Page history

JoeyLib Keyboard Functions

Keyboard input is currently very basic. There is no support for multiple simultaneous keys to be pressed at this time.

jlKeyPressed

bool jlKeyPressed(void);

Returns true if a key is currently being pressed.

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.

void jlKeyWaitForAny(void);

A convenience function. Just waits for any key to be pressed and released.

Clone repository
  • 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
  • JoeyLib Static Image Functions
View All Pages