Hi,
could you be a bit more specific please, I am not sure I understand the question fully.
Petr
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?
Hi,
could you be a bit more specific please, I am not sure I understand the question fully.
Petr
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
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.
Last edited by TBProgramer52; 20-02-2014 at 05:41.
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
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
Bookmarks