mirror of
https://github.com/encounter/cpp3ds.git
synced 2026-03-30 11:04:22 -07:00
Implement 3D slider state reading
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user