ippa / chingu

OpenGL accelerated 2D game framework for Ruby
http://ippa.se/chingu
GNU Lesser General Public License v2.1
309 stars 66 forks source link

Weird Input Behaviour #31

Closed Trebor777 closed 13 years ago

Trebor777 commented 13 years ago

Basically

:holding_left,up, right. down works perfectly but if you try :holding_a ( or any letter ) it will not call the method with the same name, or any name for that matters. ( but in the case of having the same method name as the input, it will complain if it's not here, which is good and as expected )

It's just not calling the action as it should, or not detecting the hold for that key...

ippa commented 13 years ago

tested it both with input = { :holding_a => :fire} and input = [ :holding_a ] syntax.. and works well here. Ruby 1.9 on win7. Does holding key A work with pure gosu?

If you wanna see my tests check examples\example4 and examples\tests\holding_a_test.rb

Trebor777 commented 13 years ago

Ok tried your examples, and they work fine then retried my old code.... and now it works... weird xD Nevermind. Thx fo rhte quick answer!