The Castle Doctrine Forums

Discuss the massively-multiplayer home defense game.

You are not logged in.

#1 2014-02-11 19:28:04

Welkin
Member
Registered: 2014-02-07
Posts: 21

Remapping Safe Move Confirm Button?

I really enjoy the safety the Enter-confirmation mode provides (my keyboard is a bit touchy), but enter is an annoying button to press. I normally use wasd so anything close enough to that would be nice. I can use the arrow keys and reach enter, but it's still awkward.

It would be real nice to be able to remap the confirm button to be 'space' or 'f' or any easily reachable key, or even have a click confirm. I tried looking through the settings ini files but couldn't find anything. Is there any way to remap?

Offline

#2 2014-02-11 19:29:53

Pandamonium
Member
Registered: 2014-02-10
Posts: 123

Re: Remapping Safe Move Confirm Button?

I really like this "Space button to confirm" idea.

Offline

#3 2014-02-12 07:13:37

redxaxder
Member
Registered: 2014-02-08
Posts: 96

Re: Remapping Safe Move Confirm Button?

If the feature is missing from the game, you can pull this off pretty easily using autohotkey.

#IfWinActive The Castle Doctrine
Return::Space
Space::Return

Offline

#4 2014-02-12 09:48:23

PlasmaChroma
Member
Registered: 2014-02-01
Posts: 39

Re: Remapping Safe Move Confirm Button?

Unfortunately it looks like the key is hard-coded in rather than in an .ini file. 

I think for what you describe it would require changing the value from 13 to 32.  And you'd also need to be able to build it.

Overall, autohotkey is probably the easiest idea here.


void RobHouseGridDisplay::keyDown( unsigned char inASCII ) {   
    if( mSafeMoveMode && mSafeMoveProposed ) {
       
        if( inASCII == 13 ) {
            mSafeMoveConfirmed = true;
            // apply move again, now that we have confirmation
            moveRobber( mSafeMoveIndex );
            }
        }
   
    HouseGridDisplay::keyDown( inASCII );
    }

Offline

#5 2014-02-12 15:50:09

Welkin
Member
Registered: 2014-02-07
Posts: 21

Re: Remapping Safe Move Confirm Button?

O nice, I bought the game through steam so I forgot that I have the source. Thanks for looking into that for me.

Offline

Board footer

Powered by FluxBB 1.5.8