well, I accidentally made a keyboard backwards.
-
Foone🏳️⚧️replied to Foone🏳️⚧️ last edited by [email protected]
how it works:
$ curl http://localhost:5000/29
unshifted
$ curl http://localhost:5000/6
ok (types "a")
$ curl http://localhost:5000/29
shifted
$ curl http://localhost:5000/6
ok (types "A")(29 is the scancode for "shift", 6 is the scancode for the "a/A" key)
-
-
@retroswim @foone No no no, the button should be held down for as long as the HTTP request body is held open. So you need to do:
$ curl http://localhost:5000/29 -d @- &
$ curl http://localhost:5000/6
$ fg
^D -
@retroswim that's not actually possible, because the keyboard key for "6" is running on a separate virtual computer than the shift key, and they can't communicate with each other!
-
this is the first and hopefully not the last time a llama has gotten in the way of my attempts to record a video of my new keyboard in use
-
@ekimekim @retroswim sadly not possible with the HTTP library I'm using on the client side
-
@foone I didn't mean the shift key, I mean key down/press, key up/release!
-
@retroswim oh I see!
sadly not possible with my HTTP library
-
keyboard tested and video recorded!
well, videos. I'm running this across two computers, one Raspi Pico, one video game, and 32 virtual computers.
Editing this together is going to be UNFUN -
@foone Bad ideas? No, only the worst possible ideas around here.
-
FUCK one didn't record. Time to do it again, and then it gets harder: finding out if I can run divinci resolve on this laptop
-
@winissen yeah I'm a professional, I have had a lot of experience in developing bad ideas
-
I KNOW PROGRAMMERS WHO USE DPI SCALING AND THEY'RE ALL COWARDS
-
@foone AOL Free Trial? How do I get that?
-
@jaykass I think it came with The Learning Company's Super Solvers Gizmos & Gadgets
-
okay I think I got it, I just need to render it and confirm it looks right on the render.
-
@foone If it's a USB keyboard, why not send a complete 8-byte HID packet? That even gets you n-key rollover, and takes care of modifiers (shift, etc) at the same time. You can even extend that with chunks of 8, representing subsequent reports, finally ending with an implicit "all keys up".
e.g. /0000060000000000:0000070000000000
-
@RoganDawes can't! each key is a separate (virtual) computer, so they can't talk to each other. They each send separate UDP packets when pressed
-
-
@foone Doesn't the keyboard indicate if it was pressed or released? You could make that PUT and DELETE requests.