Skip to content

input_system::key_held

Paweł Waligóra edited this page May 4, 2024 · 2 revisions

Description

A global C-style array, holding information about what keys are currently held.

Declared in input_system namespace in input_system.h file.

Meant to be read only. Modified only by input_system::key_callback() - set as key callback of opengl program.

Usage

Just read from input_system::key_held array. Index by key id. For example:

#include "input_system.h"

//...

input_system::key_held[GLFW_KEY_SPACE];

Home

Git Workflow

Issues

Coding Rules

Skrypty-Tutorial

Useful resources

Game Structure

Code Structure

Clone this wiki locally