Strict Standards: Non-static method phpbb_feed_factory::init() should not be called statically in /home/jacius/rubygame/forums/feed.php on line 66
[phpBB Debug] PHP Notice: in file /feed.php on line 171: Cannot modify header information - headers already sent by (output started at /feed.php:66)
[phpBB Debug] PHP Notice: in file /feed.php on line 172: Cannot modify header information - headers already sent by (output started at /feed.php:66)
Rubygame Forums 2010-12-31T15:55:48+00:00 http://rubygame.org/forums/feed.php?f=4&t=200 2010-12-31T15:55:48+00:00 http://rubygame.org/forums/viewtopic.php?t=200&p=711#p711 <![CDATA[Re: Mouse and Keyboard cooperation]]> Major letdown because I have to juggle my mouse between PC and laptop.

(i'm such an idiot lol. It was a default option in my mouse settings)

Statistics: Posted by red — Fri Dec 31, 2010 3:55 pm


]]>
2010-12-31T14:25:57+00:00 http://rubygame.org/forums/viewtopic.php?t=200&p=710#p710 <![CDATA[Mouse and Keyboard cooperation]]> When I press any key my mouse totally freezes and it moves again after the key is released.

I'm using magic_hooks and as far as the queue goes I tried something like that:
Code:
@queue.peek_each do |event|
­   handle event
end
@queue.each do |ev|
­   @Player.handle ev
end

where the Player class handles all the things that I'd like to be able to do while moving the mouse.

self in this case is my "Game" class where I have hooks for MouseMovedTrigger and KeyPressTrigger with KeyReleaseTrigger for the arrows.
General KeyPressTrigger and KeyReleaseTrigger hooks are in the @Player Class.

Statistics: Posted by red — Fri Dec 31, 2010 2:25 pm


]]>