E-UAE CD32 joypad support?
  • Order of the Butterfly
    Order of the Butterfly
    Solo_Kazuki
    Posts: 182 from 2006/7/23
    From: Universe:Milky...
    Hello.

    Is CD32 joypad control supported in E-UAE? And how config CD32 joypad support?
  • »11.05.19 - 14:21
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    KennyR
    Posts: 878 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 - 18:12
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    KennyR
    Posts: 878 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 - 18:36
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    Solo_Kazuki
    Posts: 182 from 2006/7/23
    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 - 19:32
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    KennyR
    Posts: 878 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 - 19:53
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    Solo_Kazuki
    Posts: 182 from 2006/7/23
    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 - 20:03
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    KennyR
    Posts: 878 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 - 22:47
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    Solo_Kazuki
    Posts: 182 from 2006/7/23
    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 - 06:20
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Solo_Kazuki
    Posts: 182 from 2006/7/23
    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 - 15:25
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    KennyR
    Posts: 878 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 - 21:33
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    Solo_Kazuki
    Posts: 182 from 2006/7/23
    From: Universe:Milky...
    Hello

    Is really nobody who use joypad with E-UAE?

    That's weird because MorphOS supports lowlevel.library native and it's probably only (?) platform which doesn't support joypads under UAE.
  • »11.09.19 - 10:57
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Korni
    Posts: 472 from 2006/2/23
    From: the Planet of ...
    E-uae has CD32 emulation disabled by default when compiling, CD32 also needs scsi emulation enabled. Unfortunately when CD32 emulation is enabled, emulation crawls and additional pad buttons don't work anyway (tested with joyporttest). Looks like e-uae simply doesn't support cd32 pad on morphos.
    http://korni.ppa.pl/modkowypaczek/ | My Rifle, My Bunny, and Me
  • »17.09.19 - 21:06
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Solo_Kazuki
    Posts: 182 from 2006/7/23
    From: Universe:Milky...
    It has nothing to CD32, at least on real hardware.

    Joypad handling is done by lowlevel.library. It can be CD32 emulation disabled, and just enabled lowlevel.library support. Also remember that lowlevel.library joypad handling is part of MorphOS itself.
  • »18.09.19 - 05:43
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Korni
    Posts: 472 from 2006/2/23
    From: the Planet of ...
    thing is, when CD32 emulation is disabled, also lowlevel.library (from inside the emulator is not available).

    lowlevel.library on morphos side works just fine, it just doesn't receive full button input as the support for it was not written in the e-uae itself for host morphos/amigaos system with lowlevel, amigaos besides lowlevel can use amigainput, but I don't know if it works there, probably works.

    Actually, with CD32 emulation lowlevel.library is "built-in". In case of regular Amiga, it's diskbased, so it needs to be in LIBS:.

    [ Edited by Korni 18.09.2019 - 22:00 ]
    http://korni.ppa.pl/modkowypaczek/ | My Rifle, My Bunny, and Me
  • »18.09.19 - 09:04
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Solo_Kazuki
    Posts: 182 from 2006/7/23
    From: Universe:Milky...
    I have lowlevel.library in emulator system. Moreover i'm using CD32 ROM which have lowlevel.library build-in.
  • »23.09.19 - 06:54
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Solo_Kazuki
    Posts: 182 from 2006/7/23
    From: Universe:Milky...
    Hello

    Is any chance to at least some patch to make joypad working?

    Edit: Here is list of games supporting more buttons in case if someone want fix it and need some games to check functionality.

    [ Edited by Solo_Kazuki 13.04.2020 - 15:50 ]
  • »13.04.20 - 13:42
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    KennyR
    Posts: 878 from 2003/3/4
    From: #AmigaZeux, Gu...
    Quote:

    Korni wrote:
    thing is, when CD32 emulation is disabled, also lowlevel.library (from inside the emulator is not available).

    lowlevel.library on morphos side works just fine, it just doesn't receive full button input as the support for it was not written in the e-uae itself for host morphos/amigaos system with lowlevel, amigaos besides lowlevel can use amigainput, but I don't know if it works there, probably works.

    Actually, with CD32 emulation lowlevel.library is "built-in". In case of regular Amiga, it's diskbased, so it needs to be in LIBS:.


    It should be a simple matter of catching the portState of lowlevel.libary inside the emulation and passing it to the one outside of it, surely.
  • »13.04.20 - 23:05
    Profile