Variable not increasing/decreasing

Posts 1–3 of 3 · Page 1 of 1
Variable not increasing/decreasing
Code:
int BereichItem=1;

if (GetAsyncKeyState (VK_UP)&1){
	BereichItem ++ ; }
if (GetAsyncKeyState (VK_DOWN)&1){
	BereichItem -- ;}
//
if (BereichItem <= 1){
	BereichItem = 4;}

if (BereichItem >= 4){
	BereichItem =4;}
why does the BereichItem not change if i press the arrow keys up /down ? o.O
Where is the code.
The int should be in globals

---------- Post added at 08:17 PM ---------- Previous post was at 08:17 PM ----------

Where is the code.
The int should be in globals
thanks @flameswor10 forgot to write the int into globals xd thx alot for help

im currently writing a base and this is needed für the menu controll ^^
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?