E-UAE CD32 joypad support?
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Solo_Kazuki
    Posts: 109 from 2006/7/24
    From: Universe:Milky...
    Hello.

    Is CD32 joypad control supported in E-UAE? And how config CD32 joypad support?
  • »11.05.19 - 15:21
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    KennyR
    Posts: 636 from 2003/3/4
    From: #AmigaZeux, Gu...
    How do you intend in plugging a CD32 joypad into your MorphOS system?

    There's only one way I know of - using a Catweasel and copying its lowlevel.library over the one that comes with MorphOS.

    [ Edited by KennyR 12.05.2019 - 19:19 ]
  • »12.05.19 - 19:12
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    KennyR
    Posts: 636 from 2003/3/4
    From: #AmigaZeux, Gu...
    If you intend in using a multi-button joypad or joystick that is compatible with the MorphOS lowlevel.device (which only includes USB and the Pegasos PC-style joystick port as far as I know - I never owned a Mac!), the lowlevel functions are:

    JPF_BUTTON_BLUE Blue - Stop
    JPF_BUTTON_RED Red - Select
    JPF_BUTTON_YELLOW Yellow - Repeat
    JPF_BUTTON_GREEN Green - Shuffle
    JPF_BUTTON_FORWARD Charcoal - Forward
    JPF_BUTTON_REVERSE Charcoal - Reverse
    JPF_BUTTON_PLAY Grey - Play/Pause
    JPF_JOY_UP Up
    JPF_JOY_DOWN Down
    JPF_JOY_LEFT Left
    JPF_JOY_RIGHT Right

    Maybe you can map these as keys in the E-UAE config (maybe without the JPF_ part). Maybe you don't even have to and E-UAE will take care of it.

    The MorphOS port of E-UAE, if it even supports joysticks at all, must use lowlevel.library
    - or have Poseidon map USB functions to keys. MorphOS has no other way of controlling joysticks as the original Amiga hardware-banging doesn't work.
  • »12.05.19 - 19:36
    Profile
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Solo_Kazuki
    Posts: 109 from 2006/7/24
    From: Universe:Milky...
    I suppose you haven't any joypad, did You?

    Of course i'm writing about using lowlevel library under E-UAE, not DB9 joypad. Poseidon have lowlevel library support in standard, You can configure ANY recognised joypad to use lowlevel.library emulation. E-UAE in standard support joypad, but only 2 button one. My question is how to configure E-UAE to use all buttons from lowlevel.library.

    Edit: Where add this strings? in .uaerc or in configstore file?

    Edit 2: Lowlevel.library emulation is from MorphOS2.x. I was using joypad over 10 years ago in MorphOS 2.x where few apps and some games support this, now most of apps and games have joypad support.

    [ Edited by Solo_Kazuki 12.05.2019 - 21:44 ]
  • »12.05.19 - 20:32
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    KennyR
    Posts: 636 from 2003/3/4
    From: #AmigaZeux, Gu...
    You just add them to the .conf file that you select on the command line, for example:

    uae -f Conf/A1200.conf -0 an_A1200_game.adf

    The cd32.conf file in the E-UAE JIT 1.0.0 archive has these lines:

    joyport0=mouse
    joyport1=joy1
    input.config=0
    input.joymouse_speed_analog=20
    input.joymouse_speed_digital=10
    input.joymouse_deadzone=33
    input.joystick_deadzone=33
    input.mouse_speed=100
    input.autofire=10
    input.1.joystick.0.disabled=0
    input.1.joystick.0.axis.0=JOY1_HORIZ.0
    input.1.joystick.0.axis.1=JOY1_VERT.0
    input.1.joystick.0.button.0=JOY1_FIRE_BUTTON.0
    input.1.joystick.0.button.1=JOY1_2ND_BUTTON.0
    input.1.joystick.0.button.2=JOY1_3RD_BUTTON.0
    input.1.mouse.0.disabled=0
    input.1.mouse.0.axis.0=MOUSE1_HORIZ.0
    input.1.mouse.0.axis.1=MOUSE1_VERT.0
    input.1.mouse.0.axis.2=MOUSE1_WHEEL.0
    input.1.mouse.0.button.0=JOY1_FIRE_BUTTON.0
    input.1.mouse.0.button.1=JOY1_2ND_BUTTON.0
    input.1.mouse.0.button.2=JOY1_3RD_BUTTON.0

    These should actually work if your joystick is being configured by MorphOS. Do you have this cd32.conf file?

    [ Edited by KennyR 12.05.2019 - 20:54 ]
  • »12.05.19 - 20:53
    Profile
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Solo_Kazuki
    Posts: 109 from 2006/7/24
    From: Universe:Milky...
    This is, as You look closely, only three (and for real two) buttons config, which i was mentioning before. And Yes, i have this active in standard.
  • »12.05.19 - 21:03
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    KennyR
    Posts: 636 from 2003/3/4
    From: #AmigaZeux, Gu...
    Shooting in the dark here, but what happens if you try...

    input.1.joystick.0.axis.0=JOY1_HORIZ.0
    input.1.joystick.0.axis.1=JOY1_VERT.0
    input.1.joystick.0.button.0=JOY1_FIRE_BUTTON.0
    input.1.joystick.0.button.1=JOY1_2ND_BUTTON.0
    input.1.joystick.0.button.2=JOY1_3RD_BUTTON.0
    input.1.joystick.0.button.3=JOY1_4TH_BUTTON.0
    input.1.joystick.0.button.4=JOY1_5TH_BUTTON.0
    input.1.joystick.0.button.5=JOY1_6TH_BUTTON.0
    input.1.joystick.0.button.6=JOY1_7TH_BUTTON.0

    According to the E-UAE joystick docs, it should be able to use all of these buttons. However, it also says you'll have to boot with a CD32 rom to make them available.

    https://github.com/keirf/e-uae/blob/master/docs/joystick.txt
  • »12.05.19 - 23:47
    Profile
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Solo_Kazuki
    Posts: 109 from 2006/7/24
    From: Universe:Milky...
    I'll try it later today.

    I'm using only CD32 Kickstart, it's 3.1 and working well as "standard" kickstart for system. I'm using full WB install and booting from HD and using HD/WHDLoad games, CD32 ROM works without problem.
  • »13.05.19 - 07:20
    Profile Visit Website
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Solo_Kazuki
    Posts: 109 from 2006/7/24
    From: Universe:Milky...
    No, it doesn't work. Tried even input.1.joystick.1 option. It looks like this is set different or CD32 joypad emulation isn't implemented in MorphOS version of E-UAE.

    My default config is:
    kickstart_rom_file=Roms/KickCD32.ROM
    kickstart_ext_rom_file=Roms/KickCD32.EXT
    filesystem=rw,System:HardDisk
    filesystem=rw,Uzytki:Utilities:Użytki
    filesystem=rw,Gry:Games:Gry
    filesystem=rw,Moduly:Storage:Moduîy
    immediate_blits=no
    cpu_type=68020
    cpu_speed=max
    cachesize=8192
    gfx_width=702
    gfx_height=512
    gfx_lores=no
    gfx_linemode=double
    gfx_center_horizontal=smart
    gfx_center_vertical=smart
    gfx_fullscreen_amiga=yes
    gfx_fullscreen_picasso=no
    gfx_framerate=1
    gfx_refreshrate=0
    gfx_colour_mode=24bit
    fast_copper=true
    show_leds=no
    fastmem_size=0
    chipmem_size=4
    z3mem_size=32
    #gfxcard_size=8
    floppy_speed=0
    sound_output=normal
    sound_bits=16
    sound_channels=stereo
    sound_frequency=44100
    chipset=aga
    show_leds=false
    kbd_lang=eng
    #gfx_vsync=false
    #hardfile=read-write,32,1,2,512,system.hdf
    #scsi=yes
    #scsi_device=cd0:
    #scsi=true
    #scsi_device=ATAPI
    amiga.screen_type=custom
    amiga.use_overlay=yes
    joyport1=joy1
    joyport0=mouse
    input.1.joystick.0.axis.0=JOY1_HORIZ.0
    input.1.joystick.0.axis.1=JOY1_VERT.0
    input.1.joystick.0.button.0=JOY1_FIRE_BUTTON.0
    input.1.joystick.0.button.1=JOY1_2ND_BUTTON.0
    input.1.joystick.0.button.2=JOY1_3RD_BUTTON.0
    input.1.joystick.0.button.3=JOY1_4TH_BUTTON.0
    input.1.joystick.0.button.4=JOY1_5TH_BUTTON.0
    input.1.joystick.0.button.5=JOY1_6TH_BUTTON.0
    input.1.joystick.0.button.6=JOY1_7TH_BUTTON.0
    bsdsocket_emu=false

    and tried option with add:
    input.1.joystick.1.axis.0=JOY1_HORIZ.0
    input.1.joystick.1.axis.1=JOY1_VERT.0
    input.1.joystick.1.button.0=JOY1_FIRE_BUTTON.0
    input.1.joystick.1.button.1=JOY1_2ND_BUTTON.0
    input.1.joystick.1.button.2=JOY1_3RD_BUTTON.0
    input.1.joystick.1.button.3=JOY1_4TH_BUTTON.0
    input.1.joystick.1.button.4=JOY1_5TH_BUTTON.0
    input.1.joystick.1.button.5=JOY1_6TH_BUTTON.0
    input.1.joystick.1.button.4=JOY1_5TH_BUTTON.0
    input.1.joystick.1.button.5=JOY1_6TH_BUTTON.0
    input.1.joystick.1.button.6=JOY1_7TH_BUTTON.0
  • »13.05.19 - 16:25
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    KennyR
    Posts: 636 from 2003/3/4
    From: #AmigaZeux, Gu...
    Disappointing.

    I've looked at the executable and it does open lowlevel.library, so either it a) opens it isn't really using it (b) is using it only for the standard joy and firebutton (c) has a bug or (d) MorphOS lowlevel.library has a bug.

    I don't think it's your settings. Using joy0 and a CD32 kick should automatically enable all the buttons.

    I haven't been able to find the source code for the MorphOS build to check what is going on.

    [ Edited by KennyR 13.05.2019 - 22:35 ]
  • »13.05.19 - 22:33
    Profile