Files
cpp3ds/src/Input.cpp
T

22 lines
353 B
C++
Raw Normal View History

2014-01-29 21:13:06 -05:00
#include <cpp3ds/Input.h>
#include <cpp3ds/utils.h>
namespace cpp3ds {
2014-02-09 01:49:58 -05:00
float Input::slider = 0;
2014-01-29 21:13:06 -05:00
int Input::getHID(){
last_hid = read_word(HID);
return last_hid;
}
bool Input::isDown(Button button) {
2014-02-06 20:47:12 -05:00
return (~read_word(HID) & button);
2014-01-29 21:13:06 -05:00
}
2014-02-09 01:49:58 -05:00
void Input::update3DSlider(){
Input::slider = (float)(read_word(SLIDERSTATE) & 0xFF) / 255;
}
2014-01-29 21:13:06 -05:00
}