hi,
i decided to rewrite my "snake" game into a DD program. i also want to use direct input. i already managed it to initialise everything, load bitmaps and put them on the screen. the only thing that doesn't work, is the input stuff. i implemented a procedure that reads the keyboard and draws a bitmap on pressing escape. but that doesn't work, and i don't know why. i'm a 100% sure that the drawing procedure for the bitmap is ok.
thanks....
nop
i decided to rewrite my "snake" game into a DD program. i also want to use direct input. i already managed it to initialise everything, load bitmaps and put them on the screen. the only thing that doesn't work, is the input stuff. i implemented a procedure that reads the keyboard and draws a bitmap on pressing escape. but that doesn't work, and i don't know why. i'm a 100% sure that the drawing procedure for the bitmap is ok.
thanks....
nop
think you forgot to set app_flag to 1 somewhere in the program
cmp app_flag,1
jne _nonactive
...
the peekmessage loop never gets executed.
cmp app_flag,1
jne _nonactive
...
the peekmessage loop never gets executed.
ok, thanks, that was the problem....... :alright:
nop
nop