From: Kevin C. <me...@ke...> - 2011-10-03 09:28:07
|
I was just trying out wxAsteroids (from Hackage) and found that the controls don't work on my system, although I'm told they work for someone using OS X. This is baffling to me. I'm running Ubuntu 11.10 Oneiric Ocelot and Xfce (xubuntu). Once I start the wxAsteroids program, I'm able to start a new game with CTRL-N, pause with CTRL-P, and quit with CTRL-Q, but I can't move the ship with arrow keys, or speed it up with + or -, at all. Any ideas why? -- Kevin Cantu Santa Barbara, CA | me...@ke... |
From: Kevin C. <me...@ke...> - 2011-10-04 08:43:33
|
Thanks, that seems to have done the trick. Now, tomorrow I'm going to have to read up on how to fix some simpler layout problems. :) https://github.com/killerswan/wxAsteroids/issues/1 -- Kevin Cantu Santa Barbara, CA | me...@ke... On Mon, Oct 3, 2011 at 11:54 AM, carlos gomez <car...@gm...> wrote: > The problem is that the keyboard events are not been listened (I think > because of the focus), but I remember I changed the window > listenner to another window or panel, and then it worked. > > On 3 October 2011 05:28, Kevin Cantu <me...@ke...> wrote: >> >> I was just trying out wxAsteroids (from Hackage) and found that the >> controls don't work on my system, although I'm told they work for >> someone using OS X. This is baffling to me. >> >> I'm running Ubuntu 11.10 Oneiric Ocelot and Xfce (xubuntu). Once I >> start the wxAsteroids program, I'm able to start a new game with >> CTRL-N, pause with CTRL-P, and quit with CTRL-Q, but I can't move the >> ship with arrow keys, or speed it up with + or -, at all. >> >> Any ideas why? >> >> >> -- >> Kevin Cantu >> Santa Barbara, CA | me...@ke... >> |
From: Henk-Jan v. T. <hj...@ch...> - 2011-10-04 14:30:16
|
On Tue, 04 Oct 2011 10:43:22 +0200, Kevin Cantu <me...@ke...> wrote: > Thanks, that seems to have done the trick. If you tell me how you fixed it, I will change the package on Hackage (if it still works on Windows). It might take some time though, as I cannot compile wxAsteroids at the moment. Regards, Henk-Jan van Tuyl -- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- |
From: Dave T. <duk...@gm...> - 2011-10-04 15:19:19
|
On 4 October 2011 09:43, Kevin Cantu <me...@ke...> wrote: > Thanks, that seems to have done the trick. > > Now, tomorrow I'm going to have to read up on how to fix some simpler > layout problems. :) > https://github.com/killerswan/wxAsteroids/issues/1 > > -- > Kevin Cantu > Santa Barbara, CA | me...@ke... > > > > On Mon, Oct 3, 2011 at 11:54 AM, carlos gomez <car...@gm...> wrote: >> The problem is that the keyboard events are not been listened (I think >> because of the focus), but I remember I changed the window >> listenner to another window or panel, and then it worked. Ah, interesting. I had a similar problem under Linux, where keyboard events were not being detected. My 'workaround' was to use 'tab' to change the focus within the window to the panel which had the even listener, only when it had focus were keyboard events triggered. Subsequently someone suggested that "WXCore.windowSetFocus" could be used, it takes in the panel which needs focus and worked for me. Dave, >> >> On 3 October 2011 05:28, Kevin Cantu <me...@ke...> wrote: >>> >>> I was just trying out wxAsteroids (from Hackage) and found that the >>> controls don't work on my system, although I'm told they work for >>> someone using OS X. This is baffling to me. >>> >>> I'm running Ubuntu 11.10 Oneiric Ocelot and Xfce (xubuntu). Once I >>> start the wxAsteroids program, I'm able to start a new game with >>> CTRL-N, pause with CTRL-P, and quit with CTRL-Q, but I can't move the >>> ship with arrow keys, or speed it up with + or -, at all. >>> >>> Any ideas why? >>> >>> >>> -- >>> Kevin Cantu >>> Santa Barbara, CA | me...@ke... >>> > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > wxhaskell-users mailing list > wxh...@li... > https://lists.sourceforge.net/lists/listinfo/wxhaskell-users > |
From: Kevin C. <me...@ke...> - 2011-10-06 06:02:18
|
The key thing I did was make a panel within the frame, and put the important stuff on the panel. I'm still trying to wrap my head around enough layout rules so I can figure out why things are clipped now, though... The area with displayed ship and rocks is 300 by 300. The ship and rocks can go about one ship-width into that clipped area to the right of that (disappearing), and the outer frame is about another extra ship-width wide. Ugh. -- Kevin Cantu Santa Barbara, CA | me...@ke... On Tue, Oct 4, 2011 at 8:18 AM, Dave Tapley <duk...@gm...> wrote: > On 4 October 2011 09:43, Kevin Cantu <me...@ke...> wrote: >> Thanks, that seems to have done the trick. >> >> Now, tomorrow I'm going to have to read up on how to fix some simpler >> layout problems. :) >> https://github.com/killerswan/wxAsteroids/issues/1 >> >> -- >> Kevin Cantu >> Santa Barbara, CA | me...@ke... >> >> >> >> On Mon, Oct 3, 2011 at 11:54 AM, carlos gomez <car...@gm...> wrote: >>> The problem is that the keyboard events are not been listened (I think >>> because of the focus), but I remember I changed the window >>> listenner to another window or panel, and then it worked. > > Ah, interesting. > I had a similar problem under Linux, where keyboard events were not > being detected. > My 'workaround' was to use 'tab' to change the focus within the window > to the panel which had the even listener, only when it had focus were > keyboard events triggered. > > Subsequently someone suggested that "WXCore.windowSetFocus" could be > used, it takes in the panel which needs focus and worked for me. > > Dave, > > >>> >>> On 3 October 2011 05:28, Kevin Cantu <me...@ke...> wrote: >>>> >>>> I was just trying out wxAsteroids (from Hackage) and found that the >>>> controls don't work on my system, although I'm told they work for >>>> someone using OS X. This is baffling to me. >>>> >>>> I'm running Ubuntu 11.10 Oneiric Ocelot and Xfce (xubuntu). Once I >>>> start the wxAsteroids program, I'm able to start a new game with >>>> CTRL-N, pause with CTRL-P, and quit with CTRL-Q, but I can't move the >>>> ship with arrow keys, or speed it up with + or -, at all. >>>> >>>> Any ideas why? >>>> >>>> >>>> -- >>>> Kevin Cantu >>>> Santa Barbara, CA | me...@ke... >>>> >> >> ------------------------------------------------------------------------------ >> All the data continuously generated in your IT infrastructure contains a >> definitive record of customers, application performance, security >> threats, fraudulent activity and more. Splunk takes this data and makes >> sense of it. Business sense. IT sense. Common sense. >> http://p.sf.net/sfu/splunk-d2dcopy1 >> _______________________________________________ >> wxhaskell-users mailing list >> wxh...@li... >> https://lists.sourceforge.net/lists/listinfo/wxhaskell-users >> > |
From: Pedro V. <pb...@dc...> - 2011-10-03 16:15:18
|
On Mon, 3 Oct 2011 02:28:01 -0700 Kevin Cantu <me...@ke...> wrote: > I was just trying out wxAsteroids (from Hackage) and found that the > controls don't work on my system, although I'm told they work for > someone using OS X. This is baffling to me. > > I'm running Ubuntu 11.10 Oneiric Ocelot and Xfce (xubuntu). Once I > start the wxAsteroids program, I'm able to start a new game with > CTRL-N, pause with CTRL-P, and quit with CTRL-Q, but I can't move the > ship with arrow keys, or speed it up with + or -, at all. > > Any ideas why? > I have experienced similar issues (particularly keyboard events not being caugh) and managed to solve them by using a panel inside the main window (in wx terms, the frame). Regards, Pedro |