Upbge: 0.3.0 - Remove keyboard.events deprecation warning

Created on 22 Jun 2020  路  6Comments  路  Source: UPBGE/upbge

I don't know if this is supposed to be there, but I can't seem to find any documentation on a keyboard.inputs module, which leaves me using the events module and getting this warning.

I think it's the same in 0.2.5 though, I just work with 0.3+

Most helpful comment

As you recovered .activated, .active.... which are handy, feel free to remove the old events code if you want. As you want

All 6 comments

So the deprecation warning is intentional and not old bge legacy? Then I'll update the code

Teorically, we set deprecation warning to warn that we will remove after 2 release. But in this case we have kept for more.
I think we should remove it for 0.3

As you recovered .activated, .active.... which are handy, feel free to remove the old events code if you want. As you want

Ah, that's really useful
Each event has .active, .activated and .released, that actually shrinks the code 馃憤

Updated the node addon to use keyboard.inputs

Was this page helpful?
0 / 5 - 0 ratings