Skip to content

Input Release

Latest
Compare
Choose a tag to compare
@BIGDummyHead BIGDummyHead released this 18 Jun 12:20
· 3 commits to master since this release

This release introduces Input.cs which allows you to check the State (Up, Down, Released, Held) of an input from virtual keys. We can also use the KeyBoard which contains most of the Virtual Keys.

Examples:

Input.State vState = Input.GetState(0x41, out State? last);
//Input.GetState(0x41); as well
//or:
Input.State state = Input.GetState(KeyBoard.A, out State? last); 
//Input.GetState(KeyBoard.A); as well

//we can also directly check states 
bool vIsDown = Input.GetDown(0x41);
//or:
bool isDown = Input.GetDown(KeyBoard.A);

//others: Input.GetUp | Input.GetHeld | Input.GetReleased

x64 | x86 Downloads below. Compiled on .Net Framework 4.7.2