Skip to content

Commit 99e0ed5

Browse files
committed
Only add new custom waveforms if shift is pressed.
1 parent b41f89e commit 99e0ed5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RenderLoop.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ void RenderLoop::MouseDownEvent(const SDL_MouseButtonEvent& event)
405405
switch (event.button)
406406
{
407407
case SDL_BUTTON_LEFT:
408-
if (!_mouseDown)
408+
if (!_mouseDown && _keyStates._shiftPressed)
409409
{
410410
// ToDo: Improve this to differentiate between single click (add waveform) and drag (move waveform).
411411
int x;

0 commit comments

Comments
 (0)