English Amiga Board

English Amiga Board (http://eab.abime.net/index.php)
-   support.FS-UAE (http://eab.abime.net/forumdisplay.php?f=122)
-   -   Control layout for 2-4 players in Anadune HD install of Dyna Blaster. (http://eab.abime.net/showthread.php?t=67462)

olesio 19 January 2013 23:53

Control layout for 2-4 players in Anadune HD install of Dyna Blaster.
 
Hello. Can anyone test http://olesio.eu/and-dyna.lzx and tell me what should be config parameters for controls in Anadune HD install for Dyna Blaster from that link, for two to four players. I want be able to press LMB or RMB by first player. And I cannot set it. Only offline for one player work following config:
Code:

joystick_port_0_mode=mouse
joystick_port_1_mode=joystick
joystick_port_2_mode=joystick
joystick_port_3_mode=joystick
joystick_port_0=mouse
joystick_port_1=keyboard
joystick_port_2=nothing
joystick_port_3=nothing

In WHDLoad version config below works fine for 2-5 players. But in WHDLoad version we do not need mouse. And I want to version of something what works better than JST version and do not need WHDLoad.key. Here is the constant array of 1 to 5 item of command line parameters in my FS-UAE Dyna Blaster launcher made in Delphi and WinAPI:
Code:

  Controlers_Settings_Params : array[1..Max_Players] of string =
    (
    '--joystick_port_0_mode=joystick' + #32 +
    '--joystick_port_1_mode=joystick' + #32 +
    '--joystick_port_2_mode=joystick' + #32 +
    '--joystick_port_3_mode=joystick' + #32 +
    '--joystick_port_0=nothing' + #32 +
    '--joystick_port_1=keyboard' + #32 +
    '--joystick_port_2=nothing' + #32 +
    '--joystick_port_3=nothing',

    '--joystick_port_0_mode=joystick' + #32 +
    '--joystick_port_1_mode=joystick' + #32 +
    '--joystick_port_2_mode=joystick' + #32 +
    '--joystick_port_3_mode=joystick' + #32 +
    '--joystick_port_0=keyboard' + #32 +
    '--joystick_port_1=nothing' + #32 +
    '--joystick_port_2=nothing' + #32 +
    '--joystick_port_3=nothing',

    '--joystick_port_0_mode=joystick' + #32 +
    '--joystick_port_1_mode=joystick' + #32 +
    '--joystick_port_2_mode=joystick' + #32 +
    '--joystick_port_3_mode=joystick' + #32 +
    '--joystick_port_0=nothing' + #32 +
    '--joystick_port_1=nothing' + #32 +
    '--joystick_port_2=nothing' + #32 +
    '--joystick_port_3=nothing',

    '--joystick_port_0_mode=joystick' + #32 +
    '--joystick_port_1_mode=joystick' + #32 +
    '--joystick_port_2_mode=joystick' + #32 +
    '--joystick_port_3_mode=joystick' + #32 +
    '--joystick_port_0=nothing' + #32 +
    '--joystick_port_1=nothing' + #32 +
    '--joystick_port_2=keyboard' + #32 +
    '--joystick_port_3=nothing',

    '--joystick_port_0_mode=joystick' + #32 +
    '--joystick_port_1_mode=joystick' + #32 +
    '--joystick_port_2_mode=joystick' + #32 +
    '--joystick_port_3_mode=joystick' + #32 +
    '--joystick_port_0=nothing' + #32 +
    '--joystick_port_1=nothing' + #32 +
    '--joystick_port_2=nothing' + #32 +
    '--joystick_port_3=keyboard'
    );

Is is any way to adapt this to Anadunde version? Please test it and let me know, because I tried in two to four FS-UAE instanced and I had problems to get mouse to work without changing configuration manually under F12 key. And ofcourse I do not want combinations with adf version, adfs if HD versions exist - sux :) In my opinion. Sorry for my bad English.

FrodeSolheim 21 January 2013 22:40

In your example (for 2-5 players), player number 2 has control of joystick port 0 (in joystick mode, using keyboard as joystick emulation). Player two should then be able to effectively press LMB by pressing the fire button.

If it is important that also player 1 can do this, you could map a key on the keyboard for player 1 to action_joy_0_fire_button (which is also the mouse button).

olesio 22 January 2013 10:27

Ok, thanks for answer. But I would prefer mouse button remap for first player also for right mouse to select 4 player adapter. I tried offline with following entry in configuration file, but nothing happend when I press F2. How to map F1 for left mouse button and F2 for right mouse button if player have no mouse selected in online mode (in offline I have it). How should my entries looks like. I tried latest version of FS-UAE from zip file on FS-UAE web page with dev ver. Thanks in advice and once again sorry for my bad English.
Code:

keyboard_key_F2=action_joy_1_2nd_button

FrodeSolheim 22 January 2013 12:15

Remember that the Amiga reads mouse input from joystick port 0, not joystick port 1, so you'll want to use the joy_0 actions like I said, not joy_1 actions:
Code:

keyboard_key_f1 = action_joy_0_fire_button
keyboard_key_f2 = action_joy_0_2nd_button

(the fact that in your setup, player one uses the joystick in joystick port 1, is irrelevant. The emulated Amiga still reads mouse input from Amiga joystick port 0...)

olesio 22 January 2013 13:00

Ok, now works fine. Thank you.


All times are GMT +2. The time now is 12:35.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.

Page generated in 0.04640 seconds with 11 queries