Re: Allegro Wrapper Help

new topic     » goto parent     » topic index » view thread      » older message » newer message
Icy_Viking said...
While run = 1 do 
	key = 0 
	al_wait_for_event(event,0) 
	 
	if key = ALLEGRO_KEY_ESCAPE then 
		run = 0 
	end if 
	 
end while 

I tried assigning the key variable inside the loop and it still does nothing. Am I skipping or missing a part?

You must assign key with the function that returns a keyboard code. Try to find such a function in the Allegro wrapper (the Eu file that links to Allegro) and change the assignment to, eg:

key = get_allegro_key()

I don't what the correct function name is but you should not have too much trouble finding it in the comments or documentation.

Spock

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu