mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-23 07:12:46 +01:00
HID: Changed TouchDataEntry valid
to a BitField and added some doc strings.
This commit is contained in:
parent
e9b9f1842b
commit
432aa1044c
2 changed files with 4 additions and 4 deletions
|
@ -156,7 +156,7 @@ void TouchUpdateComplete() {
|
||||||
current_touch_entry->y = next_touch_y;
|
current_touch_entry->y = next_touch_y;
|
||||||
|
|
||||||
// TODO(bunnei): Verify this behavior on real hardware
|
// TODO(bunnei): Verify this behavior on real hardware
|
||||||
current_touch_entry->data_valid = (next_touch_x || next_touch_y) ? 1 : 0;
|
current_touch_entry->valid = (next_touch_x || next_touch_y) ? 1 : 0;
|
||||||
|
|
||||||
// TODO(bunnei): We're not doing anything with offset 0xA8 + 0x18 of HID SharedMemory, which
|
// TODO(bunnei): We're not doing anything with offset 0xA8 + 0x18 of HID SharedMemory, which
|
||||||
// supposedly is "Touch-screen entry, which contains the raw coordinate data prior to being
|
// supposedly is "Touch-screen entry, which contains the raw coordinate data prior to being
|
||||||
|
|
|
@ -80,9 +80,9 @@ struct PadDataEntry {
|
||||||
* Structure of a single entry of touch state history within HID shared memory
|
* Structure of a single entry of touch state history within HID shared memory
|
||||||
*/
|
*/
|
||||||
struct TouchDataEntry {
|
struct TouchDataEntry {
|
||||||
u16 x;
|
u16 x; ///< Y-coordinate of a touchpad press on the lower screen
|
||||||
u16 y;
|
u16 y; ///< X-coordinate of a touchpad press on the lower screen
|
||||||
u32 data_valid;
|
BitField<0,7,u32> valid; ///< Set to 1 when this entry contains actual X/Y data, otherwise 0
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue