View Full Version : I was wondering . . . . . . . .
TBProgramer52
08-01-2014, 00:18
I was wondering if this a correct place to ask for help on how to program the mouse control to the previous codes that was added or modified by different users? Just asking though?
Petr Schreiber
08-01-2014, 01:21
Hi,
could you be a bit more specific please, I am not sure I understand the question fully.
Petr
TBProgramer52
08-01-2014, 05:10
What I meant to say was how would I code in the mouse control, (like mouse movement) to replace the keyboard, to make the game easier to play, such as a rocket game shooter in the wormhole. Have I made myself clear on this?
I had to rephrase my original question to make things clear & more precise.
Petr Schreiber
08-01-2014, 12:27
It depends on the application, for dialog based GUI, you can handle the WM_MouseMove, WM_LButton*, WM_RButton* and similar messages to get information about mouse position and button state.
For Console based applications, you can use Console_Inkey. It, again, gives information about position and button status.
With this data, you can implement even more complex control, such as gestures.
You can examine codes in SampleScripts/UI and SampleScripts/Console as base for further experiments.
Petr