Re: Adding modifiers to KeyStateHandler?

2015-11-06 Thread dhruv kumar
https://github.com/riovan/scroller/blob/master/scroller/player.py This works, but I wish to have a MOD_CTRL thing in KeyStateHandler so I can decrease the speed accordingly if it is not in there in the update function. On 11/6/15, Leif Theden wrote: > Could you paste the

Re: Adding modifiers to KeyStateHandler?

2015-11-05 Thread Leif Theden
Could you paste the code you are using? I am confident that I understand your problem, but seeing some code will help. On Thursday, November 5, 2015 at 8:54:20 PM UTC-6, dhruv kumar wrote: > > Greetings, > I've seen that in the on_key_release function, if you add a modifier, > it doesn't

Adding modifiers to KeyStateHandler?

2015-11-05 Thread dhruv kumar
Greetings, I've seen that in the on_key_release function, if you add a modifier, it doesn't quite work right. for example, I have an on_key_press where an arrow key turns something to true whereas releasing it turns to false. The ctrl modifier changes my speed. Now, I have to press both in