XS Framework
A 3DS homebrew development framework.
 
Loading...
Searching...
No Matches
controls.hpp
Go to the documentation of this file.
1
6#pragma once
7
8#include <3ds.h>
9#include <string>
10
12
16inline void ScanInput() { hidScanInput(); }
17
21inline u32 GetKeysPressed() { return hidKeysDown(); }
22
26inline u32 GetKeysHeld() { return hidKeysHeld(); }
27
31inline u32 GetKeysReleased() { return hidKeysUp(); }
32
37circlePosition GetCirclePadPosition();
42touchPosition GetTouchPosition();
43} // namespace xs::hid::control
Definition controls.hpp:11
touchPosition GetTouchPosition()
Gets the current position of the touch screen.
u32 GetKeysPressed()
Gets the keys that were just pressed.
Definition controls.hpp:21
void ScanInput()
Scans the current state of all input devices.
Definition controls.hpp:16
u32 GetKeysReleased()
Gets the keys that were just released.
Definition controls.hpp:31
circlePosition GetCirclePadPosition()
Gets the current position of the circle pad.
u32 GetKeysHeld()
Gets the keys that are currently being held.
Definition controls.hpp:26