Simulate Keyboard and Joystick

(6 posts) (2 voices)

Tags:

No tags yet.

  1. mhh110

    veteran
    Joined: Sep '07
    Posts: 113

    Hello
    Is there any solution to simulate keyboard and joystick
    For example I want to rotate a 3D Object ,then if it be in 30'<alpha<60' the x key pressing or keypad num 1 pressing
    and can it work in minimize form.my mean is in windows in the other application
    suppose I want to make a new controller with VT ,for the other games or apps.
    please help,it is urgent.
    tnx in advance.

    Posted 9 months ago #
  2. soniab

    Studio/Virtools Guru
    Joined: Aug '09
    Posts: 97

    Hi,

    To emulate joystick messages using the keyboard you can use the BB "Keyboard Controller". You can find also: Joystick Controller, Joystick waiter, KeyBoard Mapper, Key waiter etc...

    Does this help you?

    Posted 9 months ago #
  3. mhh110

    veteran
    Joined: Sep '07
    Posts: 113

    thanks soniab
    but how can I emulate Keyboard?
    e.g: If my 3d object be in one degree (suppose between 30' and 60'),"W" key pressing(w key down) if the other degree (w key up). Is it possible?

    Posted 9 months ago #
  4. soniab

    Studio/Virtools Guru
    Joined: Aug '09
    Posts: 97

    I did not test but I think you need the BB " Is Key Down" that detects if a key is down or not, there are 2 output "True" or "False".

    Does this answer to your question?

    Posted 9 months ago #
  5. mhh110

    veteran
    Joined: Sep '07
    Posts: 113

    no it doesn't.
    I want to press key by code or link not via keyboard.got it?

    Posted 9 months ago #
  6. soniab

    Studio/Virtools Guru
    Joined: Aug '09
    Posts: 97

    I am not sure to understand correctly your need, could you check this sample code and see the functions proposed by the Input Manager, does it answers to your need?

    void main()
    {
    InputManager iman = InputManager.Cast(bc.GetManagerByGuid(GetInputManagerGuid()));

    iman.CheckJoystickConnected();
    int joystick_count = iman.GetJoystickCount();

    }

    Posted 9 months ago #

Reply

You must log in to post.