[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] raw_input() and pygame.event.get()



On Monday 11 December 2006 15:12, Mike Wyatt wrote:
> Oops, I forgot to mention that.  I'm using raw_input() because I want to
> focus on getting my game working before putting time into writing a
> GUI.  Without a GUI, the only way I can get user input is with
> raw_input().  I'm working on my networking code, so I need to have each
> game instance ask the user (i.e. myself) to host a new game or join an
> existing game.
>
> Does that make sense?

Kinda :)

So I guess you just have to make sure you're focusing either on the pygame 
window (to send it events) or the shell that launched the pygame app (to send 
events to raw_input). If that works, which I couldn't guarantee.


    Richard