Page 1 of 1

[SOLVED] Using shift + mouse roll

Posted: Fri Nov 25, 2022 9:14 pm
by goldo
Hi,

I am trying to make a screen detect a mousewheel action to do something, but only when 'shift' is pressed simultaneously.

I was under the impression from reading the documentation here and here that one could use a combination of mouse and keyboard inputs, likeso:

Code: Select all

key ["shift_K_UP", "shift_mousedown_4"] action Return("up")
But instead, it throws a nasty error:

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKmain.rpy", line 1760, in script
    $ r = ui.interact()
  File "game/BKmain.rpy", line 1760, in <module>
    $ r = ui.interact()
Exception: Invalid key specifier mousedown_4
Is there a way to detect shift+mousewheel within a screen? Thank you guys for your help...

Re: Using shift + mouse roll

Posted: Wed Nov 30, 2022 2:22 am
by PyTom
This isn't possible now, but I'm tracking it as an enhancement at https://github.com/renpy/renpy/issues/4122

Re: Using shift + mouse roll

Posted: Wed Nov 30, 2022 6:47 pm
by goldo
Great, thank you!

Re: Using shift + mouse roll

Posted: Sat Dec 10, 2022 11:05 pm
by PyTom
Just added this, it should be in tomorrow's nightly.

Re: Using shift + mouse roll

Posted: Mon Dec 12, 2022 11:34 am
by goldo
Fantastic, thank you!

Re: [SOLVED] Using shift + mouse roll

Posted: Mon Dec 12, 2022 12:45 pm
by Andredron
thank you very much for your and your colleagues hard work