Jump to content

Making the D-Pad Keys Bindable in a Gamepad.


Deleted4240918User

Recommended Posts

(Info: I'm using a generic gamepad, not an xbox one, I'm also not bright at understanding the file I want to modify)

 

So I installed Dual Wield Parrying to roleplay as a dual wielding thief/rogue character. I was hoping to be able to bind the parrying block (feature of the DWP mod) to one of the gamepad keys and in return bind that key to one of the DPad keys (IE: Bind parry to and then make [D-Pad Up] open the character menu).

 

To my ugly surprise I wasn't able to do it, since the D-Pad keys are reserved in the game. So I searched a whole day trying to find a way to enable binding the D-Pad keys, and while I was successful I wasn't able to set up the gamepad just the way I wanted.

 

I installed a modified controlmap file that allowed the D-Pad keys to be bindable, but it also modifies a ton of other features which I find intrusive for a gamepad (for my taste).

 

So, I just was hoping for the help of a savvy in this situation. Editing the controlmap file to disable the advanced feature it has (IE: RB+LB=Quicksave and such) and just leave the bindable D-Pad keys.

 

The file is Use your Pad-Prepare to Mod Edition . The mod author hasn't been online since Nov-Last year; I messaged him anyways because I'm that of an annoying *censored*.

 

The code of the controlmap file is here:

 

 

// 1st field: User event name. DO NOT ALTER! This field is used to ID events in the code
// 2nd: Keyboard key ID that will proc this event. A value of 0xff means the event is unmapped for this device.
// 3rd: Mouse button ID that will proc this event.
// 4th: Gamepad button ID that will proc this event.
// 5th: If set to 1, this event can be remapped to a keyboard key
// 6th: If set to 1, this event can be remapped to a mouse button
// 7th: If set to 1, this event can be remapped to a gamepad button
// 8th (Optional): User event binary flag. Used to group together related user events, like "Movement" or
// "Menu", so they can be toggled on and off together
//
// GAMEPAD BUTTON CODES
// D-PAD UP - 0x0001
// D-PAD DOWN - 0x0002
// D-PAD LEFT - 0x0004
// D-PAD RIGHT - 0x0008
// START - 0x0010
// BACK - 0x0020
// LEFT STICK CLICK - 0x0040
// RIGHT STICK CLICK - 0x0080
// LEFT SHOULDER BUTTON/LB - 0x0100
// RIGHT SHOULDER BUTTON/RB - 0x0200
// A - 0x1000
// B - 0x2000
// X - 0x4000
// Y - 0x8000
// LEFT TRIGGER - 0x0009
// RIGHT TRIGGER - 0x000a
// LEFT STICK - 0x000b
// RIGHT STICK - 0x000c
//
// Blank lines signify the start of a new input context.
// See ControlMap.h for more details on input contexts.
//
// Main Gameplay
Forward 0x11 0xff 0xff 1 1 0 0x801
Back 0x1f 0xff 0xff 1 1 0 0x801
Strafe Left 0x1e 0xff 0xff 1 1 0 0x801
Strafe Right 0x20 0xff 0xff 1 1 0 0x801
Move 0xff 0xff 0x000b 0 0 0 0x801
Look 0xff 0xa 0x000c 0 0 0 0x2
Left Attack/Block 0xff 0x1 0x0009 1 1 1 0x841
Right Attack/Block 0xff 0x0 0x000a 1 1 1 0x841
Activate 0x12 0xff 0x1000 1 1 1 0x804
Ready Weapon 0x13 0xff 0x4000 1 1 1 0x840
Tween Menu 0x0f 0xff 0x0200+0x0040 1 1 1 0x908
Toggle POV 0x21 0xff 0x0080 1 1 1 0x820
Zoom Out 0xff 0x9 0xff 0 0 0 0x220
Zoom In 0xff 0x8 0xff 0 0 0 0x220
Jump 0x39 0xff 0x8000 1 1 1 0xC01
Sprint 0x38 0xff 0x0100 1 1 1 0x801
Shout 0x2c 0xff 0x0200+0x0080 1 1 1 0x840
Sneak 0x1d 0xff 0x2000 1 1 1 0x881
Run 0x2a 0xff 0xff 1 1 0 0x801
Toggle Always Run 0x3a 0xff 0xff 1 1 0 0x801
Auto-Move 0x2e 0xff 0x0ff 1 1 0 0x801
Favorites 0x10 0xff 0x0020 1 1 0
Hotkey1 0x02,0x4f 0xff 0x0200+0x0001 1 0 0
Hotkey2 0x03,0x50 0xff 0x0200+0x0008 1 0 0
Hotkey3 0x04,0x51 0xff 0x0200+0x0002 1 0 0
Hotkey4 0x05,0x4b 0xff 0x0200+0x0004 1 0 0
Hotkey5 0x06,0x4c 0xff 0xff 1 0 0
Hotkey6 0x07,0x4d 0xff 0xff 1 0 0
Hotkey7 0x08,0x47 0xff 0xff 1 0 0
Hotkey8 0x09,0x48 0xff 0xff 1 0 0
Quicksave 0x3f 0xff 0x0200+0x0100 1 0 0
Quickload 0x43 0xff 0x0200+0x0009 1 0 0
Wait 0x14 0xff 0x0200+0x0020 1 1 0
Journal 0x24 0xff 0x0010 1 1 0
Pause 0x1 0xff 0xff 1 1 0 0x8
Screenshot 0xb7 0xff 0x0200+0x000a 0 0 0
Multi-Screenshot 0x1d+0xb7,0x9d+0xb7 0xff 0xff 0 0 0
Console 0x29,0x94 0xff 0xff 0 0 0 0x10
CameraPath 0x58 0xff 0xff 0 0 0
Quick Inventory 0x17 0xff 0x0200+0x2000 1 1 0 0x908
Quick Magic 0x19 0xff 0x0200+0x4000 1 1 0 0x908
Quick Stats 0x35 0xff 0x0200+0x8000 1 1 0 0x908
Quick Map 0x32 0xff 0x0200+0x1000 1 1 0 0x908

// Menu Mode
Accept !0,Activate 0xff 0x1000 0 0 0 0x8
Cancel 0x0f 0xff 0x2000 0 0 0 0x8
Up !0,Forward 0xff 0x0ff 0 0 0 0x8
Down !0,Back 0xff 0x0ff 0 0 0 0x8
Left !0,Strafe Left 0xff 0x0004 0 0 0 0x8
Right !0,Strafe Right 0xff 0x0008 0 0 0 0x8
Left Stick 0xff 0xff 0x000b 0 0 0 0x8
Console 0x29 0xff 0xff 0 0 0 0x10
PageUp 0xff 0xff 0x0001 0 0 0
PageDown 0xff 0xff 0x0002 0 0 0

// Console
PickPrevious 0xff 0x8 0x0002 0 0 0 0x10
PickNext 0xff 0x9 0x0001 0 0 0 0x10
Up 0xc8 0xff 0xff 0 0 0 0x10
Down 0xd0 0xff 0xff 0 0 0 0x10
PageUp 0xc9 0xff 0xff 0 0 0 0x10
PageDown 0xd1 0xff 0xff 0 0 0 0x10
Console 0x29 0xff 0xff 0 0 0 0x10
NextFocus 0x0f 0xff 0x0200 0 0 0 0x10
PreviousFocus 0x2a+0x0f,0x36+0x0f 0xff 0x0100 0 0 0 0x10

// Item Menus
LeftEquip 0xff !0,Left Attack/Block 0x0009 0 0 0 0x8
RightEquip 0xff !0,Right Attack/Block 0x000a 0 0 0 0x8
Item Zoom 0x2e 0xff 0x0080 0 0 0 0x8
Rotate 0xff 0xff 0x000c 0 0 0 0x8
XButton !0,Ready Weapon 0xff 0x4000 0 0 0 0x8
YButton !0,Toggle POV 0xff 0x8000 0 0 0 0x8
Cursor 0xff 0xa 0xff 0 0 0 0x8

// Inventory
ChargeItem 0x14 0xff 0x0200 0 0 0 0x8

// Debug Text
PrevPage 0xc8 0xff 0xff 0 0 0 0x10
NextPage 0xd0 0xff 0xff 0 0 0 0x10
PrevSubPage 0xc9 0xff 0xff 0 0 0 0x10
NextSubPage 0xd1 0xff 0xff 0 0 0 0x10

// Favorites menu
Up 0x11 0xff 0xff 0 0 0
Down 0x1f 0xff 0xff 0 0 0
Accept 0x12 0xff 0x1000 0 0 0 0x8
Cancel 0x10,0x0f 0xff 0x2000 0 0 0 0x8
Left Stick 0xff 0xff 0x000b 0 0 0 0x8
Cursor 0xff 0xa 0xff 0 0 0 0x8

// Map Menu
Cancel 0x0f 0xff 0x2000 0 0 0 0x8
Look 0xff 0xff 0x000c 0 0 0 0x8
Zoom In 0xff 0x8 0x000a 0 0 0 0x8
Zoom Out 0xff 0x9 0x0009 0 0 0 0x8
MapLookMode 0xff 0x1 0x0200 0 0 0 0x8
Click 0xff 0xff 0x1000 0 0 0 0x8
PlacePlayerMarker 0x19 0xff 0xff 0 0 0 0x8
Cursor 0xff 0xa 0x000b 0 0 0 0x8
PlayerPosition 0x12 0xff 0x8000 0 0 0 0x8
LocalMap 0x26 0xff 0x4000 0 0 0 0x8
LocalMapMoveMode 0xff 0x0 0xff 0 0 0 0x8
Up 0x11 0xff 0xff 0 0 0 0x8
Down 0x1f 0xff 0xff 0 0 0 0x8
Left 0x1e 0xff 0xff 0 0 0 0x8
Right 0x20 0xff 0xff 0 0 0 0x8

// Stats
Rotate 0xff 0xff 0x000b 0 0 0 0x8

// Cursor
Cursor 0xff 0xa 0x000c 0 0 0 0x10
Click 0xff 0x0 0x1000 0 0 0 0x10

// Book
PrevPage 0xcb,0x1e 0x0,0x9 0x0004 0 0 0 0x8
NextPage 0xcd,0x20 0x1,0x8 0x0008 0 0 0 0x8
Cancel 0x0f 0xff 0x2000 0 0 0 0x8

// Debug overlay
Console 0x29 0xff 0xff 0 0 0 0x10
NextFocus 0x0f 0xff 0x0200 0 0 0 0x10
PreviousFocus 0x2a+0x0f,0x36+0x0f 0xff 0x0100 0 0 0 0x10
Up 0xc8 0xff 0x0001 0 0 0 0x10
Down 0xd0 0xff 0x0002 0 0 0 0x10
Left 0xcb 0xff 0x0004 0 0 0 0x10
Right 0xcd 0xff 0x0008 0 0 0 0x10
PageUp 0xc9 0xff 0xff 0 0 0 0x10
PageDown 0xd1 0xff 0xff 0 0 0 0x10
ToggleMinimize 0x3f 0xff 0x0020 0 0 0 0x10
ToggleMove 0x3e 0xff 0x0080 0 0 0 0x10
Close 0x40 0xff 0xff 0 0 0 0x10
F1 0x3b 0xff 0xff 0 0 0 0x10
F2 0x3c 0xff 0xff 0 0 0 0x10
F3 0x3d 0xff 0xff 0 0 0 0x10
F7 0x41 0xff 0xff 0 0 0 0x10
F8 0x42 0xff 0xff 0 0 0 0x10
F9 0x43 0xff 0xff 0 0 0 0x10
F10 0x44 0xff 0xff 0 0 0 0x10
F11 0x57 0xff 0xff 0 0 0 0x10
F12 0x58 0xff 0xff 0 0 0 0x10
LTrigger 0xff 0xff 0x0009 0 0 0 0x10
RTrigger 0xff 0xff 0x000a 0 0 0 0x10
Backspace 0x0e 0xff 0xff 0 0 0 0x10
Enter 0x1c 0xff 0xff 0 0 0 0x10
B 0xff 0xff 0x2000 0 0 0 0x10
Y 0xff 0xff 0x8000 0 0 0 0x10
X 0xff 0xff 0x4000 0 0 0 0x10

// Journal
Zoom In 0xff 0x8 0xff 0 0 0 0x8
Zoom Out 0xff 0x9 0xff 0 0 0 0x8
XButton 0x2d,0x32 0xff 0x4000 0 0 0 0x8
YButton 0x14 0xff 0x8000 0 0 0 0x8
TabSwitch 0xff 0xff 0x0009,0x000a 0 0 0 0x8

// TFC mode
CameraZUp 0xff 0x8 0x000a 0 0 0
CameraZDown 0xff 0x9 0x0009 0 0 0
WorldZUp 0xff 0x0 0x0200 0 0 0
WorldZDown 0xff 0x1 0x0100 0 0 0
LockToZPlane 0xff 0xff 0x4000 0 0 0

// Debug Map Menu-like mode (but not the actual map menu)
Look 0xff 0xff 0x000c 0 0 0 0x8
Zoom In 0xff 0x8 0x000a 0 0 0 0x8
Zoom Out 0xff 0x9 0x0009 0 0 0 0x8
Move 0xff 0xa 0x000b 0 0 0 0x8

// Lockpicking
RotatePick 0xff 0xa 0x000b 0 0 0 0x8
RotateLock 0x1e, 0x20 0xff 0x000c 0 0 0 0x8
DebugMode 0x35 0xff 0x4000 0 0 0 0x8
Cancel 0x0f 0xff 0x2000 0 0 0 0x8

// Favor
Cancel 0x0f 0xff 0x2000 0 0 0 0x108

 

 

 

Link to comment
Share on other sites

I have the same mod, I use a PS3 style (read: off brand) controller and can map the d pad without any extra mods. It'll throw up a warning: this key is already mapped to action blahblah, or something like that. But it'll still let you do it. I sacrificed favorites (d pad up) since I usually end up opening the main menu anyway. I mean the upper left d pad, by the way, you can't map the joystick directions (you can map clicking them straight down though).

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...