mirror of
https://github.com/encounter/cpp3ds.git
synced 2026-03-30 11:04:22 -07:00
22 lines
353 B
C++
22 lines
353 B
C++
#include <cpp3ds/Input.h>
|
|
#include <cpp3ds/utils.h>
|
|
|
|
namespace cpp3ds {
|
|
|
|
float Input::slider = 0;
|
|
|
|
int Input::getHID(){
|
|
last_hid = read_word(HID);
|
|
return last_hid;
|
|
}
|
|
|
|
bool Input::isDown(Button button) {
|
|
return (~read_word(HID) & button);
|
|
}
|
|
|
|
void Input::update3DSlider(){
|
|
Input::slider = (float)(read_word(SLIDERSTATE) & 0xFF) / 255;
|
|
}
|
|
|
|
}
|