okay so for unifying touch, mouse, keyboards, gamepads-- i've taken a liking to having a higher order application frame that sends out json-rpc notifications and then the receivers can have a single agnostic entry point for each and can filter down the spam accordingly.

@mauve this is my latest commit

github.com/tylerchilds/plan98/

my deploy is failing for unknown reasons atm, but will be up here: sillyz.computer/app/paper-pock

about to step out, will ping back when i get back and can debug why my build isn't going

the tl;dr is that paper-pocket.js is the console that consolidates the input events and then elf-tag.js is a game that gets the custom events-- not much of a game right now, more of the beginning of a settings menu for a game lol

@mauve just got home the app deployed finally: sillyz.computer/app/paper-pock

the paper-pocket component is still wip, since that was me forking some research i put together to start building a ui using my system for the tiny-ssb community

lite.sillyz.computer/

that's modeled to be a tiny device with just four inputs, just prototyped with touch screen; a notification ui with quick replies, essentially. that one doesn't have the unified input json-rpc that's in paper-pocket, but has the initial json-rpc approach i'm using in paper-pocket.

that's the most minimal approach using my paradigm, code here: github.com/tylerchilds/plan0

it would also be trivial for me to add the relevant elves to this pr to get paper-pocket natively available in agregore in github.com/AgregoreWeb/agregor

@mauve 🧡

i'm touching code again now and i'm thinking, like i know wasd is d-pad-- but do you know of like, a "standard" for mapping all gamepad buttons to keys? like, what's left bumper, right trigger, clicking a thumbstick?

the next iteration once it goes live will be my latest synth work, turning the paper-pocket into a live synthesizer where directional keys navigates music space and buttons are fifths adjacent music theory to current root note

Follow

@tychi might be good to look at the defaults in popular emulators. I think the type of game makes a big difference sadly. E.g. 3d adventure games for xbox will be different than 3DS

@mauve i went with what felt intuitive for me 🙃

vim, roughly

j - a
k - b
l - x
h - y
u - lb
i - rb
y - lt
o - rt
wasd - arrows
arrows - arrows
q - ls
e - rs
enter - start
backspace - select
meta - os

latest synth: sillyz.computer/app/paper-pock

pressing "paper pocket" or the home/meta key will pop the touch controls and paper pocket app frame open for touch buttons

Sign in to participate in the conversation
Mauvestodon

Escape ship from centralized social media run by Mauve.