Implement 3D slider state reading

This commit is contained in:
Thomas Edvalson
2014-02-09 01:49:58 -05:00
parent 35b032c827
commit d39f95e6dd
4 changed files with 20 additions and 4 deletions
+6
View File
@@ -3,6 +3,8 @@
namespace cpp3ds {
float Input::slider = 0;
int Input::getHID(){
last_hid = read_word(HID);
return last_hid;
@@ -12,4 +14,8 @@ namespace cpp3ds {
return (~read_word(HID) & button);
}
void Input::update3DSlider(){
Input::slider = (float)(read_word(SLIDERSTATE) & 0xFF) / 255;
}
}