Previous Thread
Next Thread
Print Thread
Rate This Thread
Hop To
#3898458 - 01/20/14 10:50 AM Can the controls be remapped? (2nd try)  
Joined: Jan 2004
Posts: 400
Comet Offline
Member
Comet  Offline
Member

Joined: Jan 2004
Posts: 400
NOTE: previous thread attempt went nuts (?). This is the 2nd attempt.

I just [re]started with EECH. Never seriously tried with it before, actually.
I'd like to map the Trim functions (T and Shift+T) to my joystick, but I can't find any
obvious way of doing it. And my stick isn't programmable.

Any tip?

TIA


I never finish anyth
#3898459 - 01/20/14 10:58 AM Re: Can the controls be remapped? (2nd try) [Re: Comet]  
Joined: Aug 2011
Posts: 808
Offline
Member
 Offline
Member

Joined: Aug 2011
Posts: 808
You need to use some program for remapping keys.

#3898464 - 01/20/14 11:25 AM Re: Can the controls be remapped? (2nd try) [Re: Comet]  
Joined: Jan 2004
Posts: 400
Comet Offline
Member
Comet  Offline
Member

Joined: Jan 2004
Posts: 400
Can you name me any, please?
Either they have funny names or I suck at searching (and I'm not sure about the first).

My joystick would have drivers, but they are 32-bit only and can't install on Win7 64-bit.
The joystick is barely recognized and I have none of the extras the proper drivers would grant me
(dead-zone defining, force feedback strength control, macro recording).

Thanks again.


I never finish anyth
#3898466 - 01/20/14 11:29 AM Re: Can the controls be remapped? (2nd try) [Re: Comet]  
Joined: Dec 2010
Posts: 1,883
messyhead Offline
Member
messyhead  Offline
Member

Joined: Dec 2010
Posts: 1,883
Try autohotkey.

#3898475 - 01/20/14 12:03 PM Re: Can the controls be remapped? (2nd try) [Re: Comet]  
Joined: Jan 2010
Posts: 464
tirta Offline
Member
tirta  Offline
Member

Joined: Jan 2010
Posts: 464
svmapper

#3898505 - 01/20/14 01:50 PM Re: Can the controls be remapped? (2nd try) [Re: Comet]  
Joined: Dec 2010
Posts: 1,883
messyhead Offline
Member
messyhead  Offline
Member

Joined: Dec 2010
Posts: 1,883
GlovePiE was the other one I was trying to remember. I was using this to use the mouse as a joystick control to fly with.

http://glovepie.org/glovepie.php

Although I'm not sure if it's what you need.

#3898693 - 01/20/14 07:00 PM Re: Can the controls be remapped? (2nd try) [Re: Comet]  
Joined: Jan 2004
Posts: 400
Comet Offline
Member
Comet  Offline
Member

Joined: Jan 2004
Posts: 400
AutoHotKey did the trick. Took me a while to catch some fine prints about the use of %, but now
I have a working script that does what I wanted, in the way I wanted. Couldn't ask for better.

Kudos to messyhead for the tip thumbsup


Btw, here's my 1st script (if anybody's interested):
Click to reveal..
Code:
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

#SingleInstance

Loop
{
    ;------------------------------
    ; Process the 8-Way Hat Switch:
    ;------------------------------

    ;----------------------------
    ; 8-Way Hat Switch positions:
    ;----------------------------
    ;   0     = Up
    ;   4500  = Up + Right
    ;   9000  = Right
    ;   13500 = Down + Right
    ;   18000 = Down
    ;   22500 = Down + Left
    ;   27000 = Left
    ;   31500 = Up + Left
    ;-----------------------

    hat      = 0
    last_hat = -2

    GetKeyState, hat, JoyPOV

    if hat = 0
    {
        ; Trigger the "minFOV" game function.
        Send 7
        last_hat = %hat%
    }
    else if hat = 18000
    {
        ; Trigger the "normalFOV" game function.
        Send 8
        last_hat = %hat%
    }


    ; We do not want to repeat the inputs. 
    ; Wait for the Hat Switch to be released.
    ; Among the Hat Switch valid states figure 0 and -1.
    ; Therefore we resort to -2 to signal ourselves a variable-not-set.
    if last_hat <> -2
    {
        Loop
        {
            Sleep, 50
            GetKeyState, hat, JoyPOV
            if hat <> %last_hat%
            {
                Break
            }
        }
    }


    ;------------------------------------------------------------
    ; Process the Joystick Buttons (Joy1 through Joy8 available):
    ;------------------------------------------------------------

    GetKeyState, but5, Joy5
    GetKeyState, but6, Joy6

    if but5 = D
    {
        ; Trigger the "Trim" game function.
        Send t

        ; Wait for the button to be released.
        KeyWait, Joy5
    }
    else if but6 = D
    {
        ; Trigger the "Reset Trim" game function.
        Send +t

        ; Wait for the button to be released.
        KeyWait, Joy6
    }

    Sleep, 100
}


This maps (game's function) "minFOV" to (joystick control) "Hat Switch Up", normalFOV to Hat Switch Down,
Trim to Joy Button #5 and Reset Trim to Joy Button #6. Most of the script code is just to prevent the
sending of unnecessary input repetitions. Right now that's all I need.

Until next time!


I never finish anyth
#3906264 - 02/03/14 05:54 AM Re: Can the controls be remapped? (2nd try) [Re: Comet]  
Joined: Jun 2013
Posts: 35
clach04 Offline
Junior Member
clach04  Offline
Junior Member

Joined: Jun 2013
Posts: 35
Check out this thread http://simhq.com/forum/ubbthreads.php/topics/3807288/mapping_joystick_to_keyboard_c I had some success with the Xpadder demo but I've not played eech in ages so this isn't a firm recommendation :-(


Moderated by  RacerGT 

Quick Search
Recent Articles
Support SimHQ

If you shop on Amazon use this Amazon link to support SimHQ
.
Social


Recent Topics
Carnival Cruise Ship Fire....... Again
by F4UDash4. 03/26/24 05:58 PM
Baltimore Bridge Collapse
by F4UDash4. 03/26/24 05:51 PM
The Oldest WWII Veterans
by F4UDash4. 03/24/24 09:21 PM
They got fired after this.
by Wigean. 03/20/24 08:19 PM
Grown ups joke time
by NoFlyBoy. 03/18/24 10:34 PM
Anyone Heard from Nimits?
by F4UDash4. 03/18/24 10:01 PM
RIP Gemini/Apollo astronaut Tom Stafford
by semmern. 03/18/24 02:14 PM
10 years after 3/8/2014
by NoFlyBoy. 03/17/24 10:25 AM
Copyright 1997-2016, SimHQ Inc. All Rights Reserved.

Powered by UBB.threads™ PHP Forum Software 7.6.0