Example #1
0
void keydown(unsigned char ch, int x, int y)
{
    if (ch == 'w')
    {
        player.WDown();
    }
    else if (ch == 's')
    {
        player.SDown();
    }
    else if (ch == 'a')
    {
        player.ADown();
    }
    else if (ch == 'd')
    {
        player.DDown();
    }
}