Added docking clearance joystick button control to stickmapper.
This commit is contained in:
parent
036c0ee1d9
commit
32c8b485db
@ -1659,6 +1659,7 @@
|
||||
"stickmapper-dockcpu" = "Autopilot (standard)";
|
||||
"stickmapper-dockcpufast" = "Autopilot (fast)";
|
||||
"stickmapper-compass-mode-next" = "Next compass target";
|
||||
"stickmapper-docking-clearance" = "Docking clearance";
|
||||
|
||||
"oolite-stickprofile-title" = "Joystick Profile";
|
||||
"oolite-stickprofile-back" = "Back";
|
||||
|
@ -1321,7 +1321,7 @@ static NSTimeInterval time_last_frame;
|
||||
|
||||
exceptionContext = @"docking clearance request";
|
||||
|
||||
if ([gameView isDown:key_docking_clearance_request])
|
||||
if ([gameView isDown:key_docking_clearance_request] || joyButtonState[BUTTON_DOCKINGCLEARANCE])
|
||||
{
|
||||
if (!docking_clearance_request_key_pressed)
|
||||
{
|
||||
|
@ -675,6 +675,11 @@ MA 02110-1301, USA.
|
||||
allowable:HW_BUTTON
|
||||
axisfn:STICK_NOFUNCTION
|
||||
butfn:BUTTON_COMPASSMODE]];
|
||||
[funcList addObject:
|
||||
[self makeStickGuiDict:DESC(@"stickmapper-docking-clearance")
|
||||
allowable:HW_BUTTON
|
||||
axisfn:STICK_NOFUNCTION
|
||||
butfn:BUTTON_DOCKINGCLEARANCE]];
|
||||
return funcList;
|
||||
}
|
||||
|
||||
|
@ -98,6 +98,7 @@ enum {
|
||||
BUTTON_INC_FIELD_OF_VIEW,
|
||||
BUTTON_DEC_FIELD_OF_VIEW,
|
||||
#endif
|
||||
BUTTON_DOCKINGCLEARANCE,
|
||||
BUTTON_end
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user