mirror of
https://github.com/encounter/cpp3ds.git
synced 2026-03-30 11:04:22 -07:00
16 lines
229 B
C++
16 lines
229 B
C++
|
|
#include <cpp3ds/Input.h>
|
||
|
|
#include <cpp3ds/utils.h>
|
||
|
|
|
||
|
|
namespace cpp3ds {
|
||
|
|
|
||
|
|
int Input::getHID(){
|
||
|
|
last_hid = read_word(HID);
|
||
|
|
return last_hid;
|
||
|
|
}
|
||
|
|
|
||
|
|
bool Input::isDown(Button button) {
|
||
|
|
return (!(read_word(HID) & button));
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|