mirror of
https://codeberg.org/armin/sm-26.git
synced 2026-10-11 17:01:53 +02:00
Replace nav buttons with a virtual joystick pad
This commit is contained in:
parent
7fd884141b
commit
c7ebd3ed4d
6 changed files with 418 additions and 76 deletions
|
|
@ -240,8 +240,6 @@ void LcdDisplay::timerCallback() { repaint(); }
|
|||
|
||||
void LcdDisplay::mouseDown (const juce::MouseEvent& e)
|
||||
{
|
||||
const int row = juce::jlimit (0, kRows - 1,
|
||||
(int) (e.position.y / (float) (getHeight() / kRows)));
|
||||
if (onPressed)
|
||||
onPressed (row);
|
||||
(void)e;
|
||||
// Clicking disabled - navigate with joystick keys only.
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue