keyevent - C# Key Down stops firing after right arrow key pressed -
my team , made game version of snake, , works except after push right arrow key, key events stop firing. have tried setting keyboard.focus , other focus methods, doesn't work.
our project on github at: csis2530, bbarke.
i don't know why key down event stops working after right arrow key has been pressed.
i hope us.
i fixed gui ensuring gamewindow has focus , gamewindow has focus. do:
click on new game button, go property , search "focusable". uncheck focusable checkbox. combobox (the 1 has levels), high score button, , apples eaten label, , else except game window. make sure gamewindow has focus , make sure focusable checked.
i noticed when push on arrow keys, combo box change. due focus gamewindow being taken away combo box.
so make sure gamewindow has focusable property checked.
Comments
Post a Comment