About GetPlayerInput and BT_USER buttons

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
Ravick
Posts: 2049
Joined: Sun Aug 22, 2010 10:59 pm
Location: Tubarão, Brasil
Contact:

About GetPlayerInput and BT_USER buttons

Post by Ravick »

How/where are the custom buttons (BT_USER1 to BT_USER4) defined?
Blue Shadow
Posts: 5043
Joined: Sun Nov 14, 2010 12:59 am

Re: About GetPlayerInput and BT_USER buttons

Post by Blue Shadow »

Well, they're not in the controls menu thats for sure, but you still can bind them to keys just like other controls, example:

Code: Select all

bind t +user1
bind y +user2
bind u +user3
bind i +user4
If you want them to show up in the controls menu so that the player can bind/rebind them if he/she chooses to then check "Adding keysections" page on how to do that.
User avatar
Ravick
Posts: 2049
Joined: Sun Aug 22, 2010 10:59 pm
Location: Tubarão, Brasil
Contact:

Re: About GetPlayerInput and BT_USER buttons

Post by Ravick »

Got it! Thanks! :)
Locked

Return to “Editing (Archive)”