while(1) loop, lastKey is just a global int
Code: Select all
scanKeys();
if(keysDown())
lastKey = keysDown();
Code: Select all
switch(lastKey)
{
case (KEY_RIGHT):
//Code here
Code: Select all
case (KEY_UP | KEY_RIGHT):
Code: Select all
scanKeys();
if(keysDown())
lastKey = keysDown();
Code: Select all
switch(lastKey)
{
case (KEY_RIGHT):
//Code here
Code: Select all
case (KEY_UP | KEY_RIGHT):
Users browsing this forum: Ahrefs [Bot] and 4 guests