Skip to content

input_system::axis_state()

Paweł Waligóra edited this page May 7, 2024 · 1 revision

Description

Get state of a hypothetical input_system::axis made out of plus_key and minus_key.

Declared in axis.h file.

Defined in axis.cpp file.

Usage

Provide GLFW_KEY_... as arguments.

You can make an improvised input_system::double_axis out of this:

#include "axis.h"
glm::vec2 db_axis = glm::vec2(input_system::axis_state(GLFW_KEY_UP, GLFW_KEY_DOWN), input_system::axis_state(GLFW_KEY_RIGHT, GLFW_KEY_LEFT));

Home

Git Workflow

Issues

Coding Rules

Skrypty-Tutorial

Useful resources

Game Structure

Code Structure

Clone this wiki locally