Okay I searched the forum and I couldnt find a way to get a keypress. What would the code be to get say the right arrow key? Im not sure what event or how to trigger such an event. I have a form in VB.NET and the game runs on the form.
Printable View
Okay I searched the forum and I couldnt find a way to get a keypress. What would the code be to get say the right arrow key? Im not sure what event or how to trigger such an event. I have a form in VB.NET and the game runs on the form.
I am not sure how you do it in VB.NET but at least in regular VB, you can choose diffrent events for a form, and one of them are key_up. That one or Key_down or key_press can be used to get a hold of a keypress...
Also in regular vb there are built in constants for each key.
For the right key it's vbKeyRight and for enter/return vbKeyReturn etc...