GUI: prepare for the input pad

This commit is contained in:
tildearrow 2022-05-17 15:48:37 -05:00
parent 63d09c0f54
commit 40a63433c5
3 changed files with 76 additions and 4 deletions

View file

@ -2323,8 +2323,8 @@ void FurnaceGUI::processPoint(SDL_Event& ev) {
}
TouchPoint newPoint(ev.button.x,ev.button.y);
#ifdef __APPLE__
newPoint->x*=dpiScale;
newPoint->y*=dpiScale;
newPoint.x*=dpiScale;
newPoint.y*=dpiScale;
#endif
activePoints.push_back(newPoint);
pressedPoints.push_back(newPoint);
@ -4276,6 +4276,7 @@ FurnaceGUI::FurnaceGUI():
pianoOffset(6),
pianoOffsetEdit(9),
pianoView(2),
pianoInputPadMode(2),
#else
pianoOctaves(7),
pianoOctavesEdit(4),
@ -4284,6 +4285,7 @@ FurnaceGUI::FurnaceGUI():
pianoOffset(6),
pianoOffsetEdit(6),
pianoView(0),
pianoInputPadMode(0),
#endif
hasACED(false) {
// value keys