mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-01 22:30:42 -07:00
eb037542b4
## Description of change There was enough feedback that the current algorithm is not ideal for most touch screens because most touch screens are not 24". In the current algorithm touching the gap is no-op, so people think the game is dropping touches. This PR introduces a new algorithm that inspect touches on the gap and triggers the nearest square. ## Testing Tested landscape and portrait jubeat.
26 lines
485 B
C++
26 lines
485 B
C++
#pragma once
|
|
|
|
#include "games/game.h"
|
|
|
|
namespace games::jb {
|
|
|
|
enum JubeatTouchAlgorithm {
|
|
Legacy,
|
|
Improved,
|
|
AcAccurate
|
|
};
|
|
|
|
// touch stuff
|
|
extern JubeatTouchAlgorithm TOUCH_ALGORITHM;
|
|
extern bool TOUCH_STATE[16];
|
|
void touch_update();
|
|
|
|
class JBGame : public games::Game {
|
|
public:
|
|
JBGame();
|
|
virtual void pre_attach() override;
|
|
virtual void attach() override;
|
|
virtual void detach() override;
|
|
};
|
|
}
|