I search for solutions in this order: Past Code, Unreal Source, Wiki, BUF, groups.yahoo, google, screaming at monitor. – RegularX
Legacy:UTExtraKeyBindings
From Unreal Wiki, The Unreal Engine Documentation Site
This can be used to create new entries in the Options -> Preferences -> Controls window.
See GUIUserKeyBinding for a similar facility in UT2003.
Usage[edit]
- Subclass UTExtraKeyBindings.
- Put the name of your mod in the SectionName variable.
- Put the descriptions of the actions in the LabelList array.
- Put the exec functions to be bound in the AliasNames array.
Make a MyPackage.int file with the following data in it:
[Public] Object=(Name=MyPackage.MyKeyBindingsClass,Class=Class,MetaClass=UTMenu.UTExtraKeyBindings)
The corresponding UTExtraKeyBindings subclass:
class MyKeyBindings extends UTExtraKeyBindings; defaultproperties { SectionName="Capture the Mage" LabelList(0)="Cast Spell" LabelList(1)="Activate Shield" AliasNames(0)="castspell" AliasNames(1)="activateshield" }