mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-15 09:56:00 -04:00
Touch: Simplify scanning.
This commit is contained in:
parent
8a8e84d763
commit
dd2097a447
2 changed files with 10 additions and 19 deletions
|
@ -38,7 +38,7 @@ using sample_t = uint16_t;
|
|||
|
||||
constexpr sample_t sample_max = 1023;
|
||||
|
||||
constexpr sample_t touch_threshold = sample_max * 0.5f;
|
||||
constexpr sample_t touch_threshold = sample_max / 5;
|
||||
|
||||
struct Samples {
|
||||
sample_t xp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue