I'm packing things to go into storage since I'm going to be moving quite soon and I have enough time to finish up this project at least, a few months back I bought this Kapok 5400PT laptop - the flower means it's got a TFT and it's got a gamepad on the palm rest???
The attachment kapok-5400pt.jpg is no longer available
The four buttons are actually buttons 1 and 2, with the extra 1&2 buttons having a little circuit added so they're turbo 1&2.
Of course, the hinge plastics are disintegrating so today I made a 3d print to reinforce that area then epoxied it on. Had to grind loads away because I put plastic in the area that the hinges rotate into when opening the screen and they don't want to glue down but it'd holding.
It has this strange little port on the side that looks like it'd be for a floppy drive since it's a 26-pin thin connector that clips in like you'd see on external floppy drives, but this one has it built in already. Nope, that port is for the gameport dongle of course, it does have a little bat in a diamond shape that looks sorta like a joystick printed by it.
I traced this out to how they connect into the ESS sound chip and derived a pinout:
The attachment 5400pt-gameport.png is no longer available
edit: I should add, pin 1 is on the edge facing towards the keyboard, not the front of the machine.
Using a scrap 0.8mm PCB segment from a dock adapter PCB I made - with 1.27mm spacing between each pad, I was able to wire up a gameport and it works just as well as it was designed - which is not very well 😀
The attachment IMG_1371-crop.jpg is no longer available
For some reason they only wired up one set of the x & y axis and only 2 buttons. It also likes conflicting with the built-in gamepad and switching between joystick and gamepad seems to often require a reboot.
But midi out works and that's great!
The attachment IMG_1378 (Custom).JPG is no longer available