Hazel icon indicating copy to clipboard operation
Hazel copied to clipboard

Added more functions for Input polling

Open CybernetHacker14 opened this issue 4 years ago • 0 comments

Describe the issue

Added four functions to the existing Input class - IsKeyDown(), IsKeyUp(), IsMouseButtonDown(), IsMouseButtonUp(). These functions return the value only once, even when called in OnUpdate() functions. This feature has been developed to emulate Unity's GetKeyDown(), GetKeyUp(), GetMouseButtonDown(), GetMouseButtonUp() respectively.

PR impact

List of related issues/PRs this will solve:

Impact Issue/PR
Issues this solves None
Other PRs this solves None

Additional context

Logic Reference :- Input.java

CybernetHacker14 avatar Aug 25 '20 14:08 CybernetHacker14