Results 1 to 3 of 3

Thread: adding FPS Key and mouse controls to RT3DApp

  1. #1
    Lesser Wizard
    Join Date
    Nov 2010
    Location
    Los Angeles, California, United States, United States
    Posts
    126

    Default adding FPS Key and mouse controls to RT3DApp

    So, wondering what you think the best route would be for including keyboard (w,a,s,d, space...) and mouse controls to the windows version of RT3DApp. It doesn't seem to be included.

  2. #2
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    5,343

    Default

    For the WASD, I'm sort of in the middle of adding support for that now - it will give you pressed and released messages through a new sig, that's really all you need for keyboard controls.

    (for Win, I will use WM_KEYDOWN and WM_KEYUP to get the info I guess.. not implemented yet)

    For the Windows mouse - uhh.. hmm. Mouse movement is being sent using message type MESSAGE_TYPE_GUI_CLICK_MOVE_RAW through m_sig_input (or m_sig_input_move if INPUT_MODE_SEPARATE_MOVE_TOUCHES was set using BaseApp::SetInputMode) Check shared/win/app/main.cpp and search for WM_MOUSEMOVE to see where that happens.

    You could capture that and see if that input works ok, from there you would have to figure out how you wanted to adjust the Irrlicht camera/player position based on it.

    If you need to get "serious" like for a Windows FPS, it would probably be better to make a InputDirectInputComponent.cpp and use DirectX to do the heavy lifting so you can access all the extra buttons and such. Probably need it for gamepad support as well.
    Seth A. Robinson
    Robinson Technologies

  3. #3
    Lesser Wizard
    Join Date
    Nov 2010
    Location
    Los Angeles, California, United States, United States
    Posts
    126

    Default

    Cool, I'll check that out. I'm just looking to emulate FPS touches with the keyboard/mouse. I've tapped, touched, swatted and punched my screen (as many developers tend to do) but that doesn't seem to help

Similar Threads

  1. Issues with RT3DApp Windows & Visual C++ 2010 Express
    By Bryan C Dickson in forum Proton SDK
    Replies: 8
    Last Post: 11-08-2010, 08:13 AM
  2. mouse
    By attle in forum Novashell Game Creation System
    Replies: 5
    Last Post: 05-29-2008, 07:39 AM
  3. Mouse Input
    By Soudeus in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 04-25-2007, 01:57 PM
  4. How do I change controls?
    By in forum Dink Smallwood HD
    Replies: 8
    Last Post: 08-13-2006, 11:24 PM
  5. Adding Di-Mart Guns
    By in forum Funeral Quest
    Replies: 5
    Last Post: 03-28-2005, 09:18 PM

Bookmarks

Bookmarks

Posting Permissions

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