'Move cursor using keypress
How to move cursor using keypress , without using goto in C?
Like I want to a program to move the cursor using keypress W , A , S , D (W for move up , A for move left , S for move down and D for move left)
Solution 1:[1]
goto doesn't help you here. In fact, the code for controlling a desktop computer's mouse is much more complicated.
Often it's not portable either.
For example: In Windows in Visual Studio, we can use functions from Microsoft's Win32API. This guy already gave an answer (the code is messy):
https://stackoverflow.com/a/2732323/7753444
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Ronen |
