Re: Allegro Wrapper Help
- Posted by Spock Jul 05, 2016
- 1492 views
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