Results 1 to 4 of 4

Thread: I was wondering . . . . . . . .

  1. #1
    Junior Member TBProgramer52's Avatar
    Join Date
    Mar 2010
    Location
    Saint George, Ut
    Posts
    24
    Rep Power
    17

    I was wondering . . . . . . . .

    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?

  2. #2
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,153
    Rep Power
    736
    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

  3. #3
    Junior Member TBProgramer52's Avatar
    Join Date
    Mar 2010
    Location
    Saint George, Ut
    Posts
    24
    Rep Power
    17

    Smile I want to change something

    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.

  4. #4
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,153
    Rep Power
    736
    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

Similar Threads

  1. Wondering about pulling the talent together
    By kryton9 in forum General
    Replies: 0
    Last Post: 22-07-2007, 08:48
  2. Just wondering
    By kryton9 in forum thinBasic General
    Replies: 1
    Last Post: 18-07-2007, 07:05
  3. I was wondering?
    By kryton9 in forum Game general
    Replies: 6
    Last Post: 20-03-2007, 11:36

Members who have read this thread: 0

There are no members to list at the moment.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •