Re: Allegro Wrapper Help
- Posted by Icy_Viking Jul 05, 2016
- 1517 views
include std/machine.e include EuAllegro.ew atom ret = al_install_system(ALLEGRO_VERSION_INT,0) atom display = 0 atom event = 0 atom key = 0 display = al_create_display(800,600) event = al_create_event_queue() key = al_install_keyboard() al_register_event_source(event,al_get_display_event_source(display)) atom run = 1 al_flip_display() 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?