Post AzRDtXGyWGmzb5TRMu by Ronflaix@mastodon.gamedev.place
(DIR) More posts by Ronflaix@mastodon.gamedev.place
(DIR) Post #AzQrKpexy2TPUpk60e by foone@digipres.club
2025-10-21T11:20:31Z
0 likes, 0 repeats
implementing an onscreen keyboard for a 128x64 screen shouldn't be too hard, right?
(DIR) Post #AzQrOgZZh7AcTK3fHs by foone@digipres.club
2025-10-21T11:20:51Z
0 likes, 0 repeats
I have 2 entire buttons
(DIR) Post #AzQrSG9hr4O1hNf8mu by adriano@lile.cl
2025-10-21T11:21:48Z
0 likes, 0 repeats
@foone 0 and 1, just like we had in my old times
(DIR) Post #AzQrWLsoVBnQcXiEim by greenWhale@dice.camp
2025-10-21T11:22:13Z
0 likes, 0 repeats
@foone so basically a 'q' and an arrow right for switching the 'q' to 'w' ? 🤔
(DIR) Post #AzQrZYHoqLRjxQw0Bc by foone@digipres.club
2025-10-21T11:22:29Z
0 likes, 0 repeats
@greenWhale something like that
(DIR) Post #AzQrdhUSZ7GLf3pE4O by JennyFluff@chitter.xyz
2025-10-21T11:23:00Z
0 likes, 0 repeats
@foone enough to input morse code! might be more usable than cycling through the alphabet
(DIR) Post #AzQrqj97iiIMYs3azY by foone@digipres.club
2025-10-21T11:26:20Z
0 likes, 0 repeats
importantly I need a 104 key keyboard here, possibly more. not just letters plus space+caps+enter.
(DIR) Post #AzQruoIQVx45gzM67M by foone@digipres.club
2025-10-21T11:27:06Z
0 likes, 0 repeats
also my display is monochrome
(DIR) Post #AzQs82ndtzGSRGGbcO by poppis@eliitin-some.fi
2025-10-21T11:29:19Z
0 likes, 0 repeats
@foone everyone knows the layout, so even very small would do.. but selecting with just two buttons, I dunno... short&long press?
(DIR) Post #AzQsZ2W93jvhNkxGkq by foone@digipres.club
2025-10-21T11:34:19Z
0 likes, 0 repeats
step one: make an orthoized 104-key layout.The idea is that there's a cursor that can move either down or right. This layout should make it clear (mostly) which key will end up highlighted when you press either of those keys
(DIR) Post #AzQslBythPLeCzCMc4 by foone@digipres.club
2025-10-21T11:36:30Z
0 likes, 0 repeats
damn it, I think my second prototype is too small. it's 25x7 pixels
(DIR) Post #AzQt1ko5z9vuqt2jrM by foone@digipres.club
2025-10-21T11:39:32Z
0 likes, 0 repeats
for posterity
(DIR) Post #AzQtHmgKmaLHIf3ZlQ by foone@digipres.club
2025-10-21T11:42:21Z
0 likes, 0 repeats
new version: 100x28
(DIR) Post #AzQtsFe2ZmxDYINAau by foone@digipres.club
2025-10-21T11:49:01Z
0 likes, 0 repeats
full screen layout.F2 is currently selected
(DIR) Post #AzQuJjZLQVgWBBHTqi by henryk@chaos.social
2025-10-21T11:53:53Z
0 likes, 0 repeats
@foone I've seen you make many weird keyboard shenanigans. But a claw machine keyboard, that's a new one. :)
(DIR) Post #AzQuobkWY9tOu7ER0K by nicholas@aklp.club
2025-10-21T11:59:59.291200Z
0 likes, 0 repeats
Neat!
(DIR) Post #AzQvDbXgSObXV994BU by foone@digipres.club
2025-10-21T12:03:56Z
1 likes, 0 repeats
photographing a keyboard this small isn't easy
(DIR) Post #AzQvNh5IhprJaOgEr2 by ppxl@social.tchncs.de
2025-10-21T12:05:52Z
0 likes, 0 repeats
@foone neat. Did you think about making the keyb dynamic? So a either a me hit can be shown in a sort of magnifier. While the rest may stay smaller. This could also work with hitting keys yourself touch-down and search until you find the right key, release. Probably needs a modifier key for combos.
(DIR) Post #AzQvhRp1A5hw2dU22y by foone@digipres.club
2025-10-21T12:09:28Z
0 likes, 0 repeats
@LionsPhil yep
(DIR) Post #AzQx071KpC4Cz2hz3g by nicholas@aklp.club
2025-10-21T12:24:29.246320Z
0 likes, 0 repeats
Do you have to index your way over to shift every time before accessing special characters, or does the top row stay special full time and you run over to the num pad for numbers?
(DIR) Post #AzQxcFAcyK9DGREmkS by foone@digipres.club
2025-10-21T12:30:46Z
0 likes, 0 repeats
@nicholas neither! this is actually just for selecting keyboard keys, so if you select shift you get shift
(DIR) Post #AzQxqC2NPwW1bL1uTo by UpLateGeek@bitbang.social
2025-10-21T12:33:25Z
0 likes, 0 repeats
@foone actually pretty realistic considering my eyesight.
(DIR) Post #AzQxqu19tpgY0InYgq by nicholas@aklp.club
2025-10-21T12:34:01.146405Z
0 likes, 0 repeats
Interesting, I'm curious about the application of such a selector if you're willing to share more about the overall project.
(DIR) Post #AzQy1Jrwdi9n4nSK12 by foone@digipres.club
2025-10-21T12:35:24Z
1 likes, 0 repeats
@nicholas this is a programmable keyboard and this particular applet is for holding down a key. So you launch the applet and it asks you to select the key, then once selected it'll hold down that keyboard key until you tell it to stop
(DIR) Post #AzQzF7GuNBBm0yH6oK by foone@digipres.club
2025-10-21T12:49:08Z
0 likes, 0 repeats
now the tricky part: generating the data structures representing this keyboard without having to retype the whole thing from scratch
(DIR) Post #AzQzMG1IFIvBApNOTY by foone@digipres.club
2025-10-21T12:50:29Z
0 likes, 0 repeats
every key has a:x positiony positionwidthheightnameusb keycodewhat key is to the rightwhat key is to the leftso I think I'm making a linked list and the cursor is a pointer to the current node?
(DIR) Post #AzQzPOiwLD6d2NHzRQ by saua@troet.cafe
2025-10-21T12:50:42Z
0 likes, 0 repeats
@foone I feel like the right Shift key should be labelled "Shiiiiiiiiiiiiift" ... for no particularly good reason.
(DIR) Post #AzQzZ6rxZw1EYg8h4y by foone@digipres.club
2025-10-21T12:52:41Z
0 likes, 0 repeats
@dysfun that's effectively the same, isn't it? I'd just be using indexes instead of pointers?
(DIR) Post #AzQzj1uirEeQ5LA5Gi by foone@digipres.club
2025-10-21T12:54:34Z
0 likes, 0 repeats
@dysfun I don't really need to iterate it in full, I just need to know where I am, and how to get to the next two places
(DIR) Post #AzR01WpOesuzAyUWi8 by ppxl@social.tchncs.de
2025-10-21T12:57:48Z
0 likes, 0 repeats
@foone why not keys above or under?
(DIR) Post #AzR0L2jYG3CfdF3wae by foone@digipres.club
2025-10-21T13:01:23Z
0 likes, 0 repeats
@ppxl I meant right & under. the left and up don't matter because I only have two keys
(DIR) Post #AzR0Svppn5mgYKlMm0 by bug@chitter.xyz
2025-10-21T13:02:50Z
0 likes, 0 repeats
@foone i would have personally made the first column 2u which would potentially throw off your nice F-key arrangement but would make easier visual anchor points for finding Q A Z and also make the whole thing 104x28
(DIR) Post #AzR0vZkF06ZuRHnycq by GezThePez@mastodon.scot
2025-10-21T13:08:00Z
0 likes, 0 repeats
@foone circular linked list? Array or pointers
(DIR) Post #AzR2MdAiT1EmqBeZto by nicholas@aklp.club
2025-10-21T13:24:35.050193Z
0 likes, 0 repeats
You could use a long press or double press to go the other direction
(DIR) Post #AzR2QArrdusUDQWd3g by foone@digipres.club
2025-10-21T13:24:42Z
0 likes, 0 repeats
@pndc makes a lot of sense, I may do that
(DIR) Post #AzR5jb8CWHSD2E7Viq by foone@digipres.club
2025-10-21T14:01:47Z
0 likes, 0 repeats
no one noticed the pixel art version of my art is off by one column of pixels?
(DIR) Post #AzR5n7840csN8vjTm4 by foone@digipres.club
2025-10-21T14:01:52Z
0 likes, 0 repeats
I mean I didn't either
(DIR) Post #AzR6WCa2aWzl55JmvQ by hp@mastodon.tmm.cx
2025-10-21T14:10:34Z
0 likes, 0 repeats
@foone It's like having spinach in your teeth. Very few people feel comfortable telling you. :)
(DIR) Post #AzR6dutOEeUYXW2zRo by nicholas@aklp.club
2025-10-21T14:12:32.197181Z
0 likes, 0 repeats
Even knowing that it is now, I still can't see it 👀Maybe should get more ☕️
(DIR) Post #AzR7vaRt5BkoIlAmQK by ppxl@social.tchncs.de
2025-10-21T14:25:39Z
1 likes, 0 repeats
@nicholas @foone exactly! all the tidbits of 1990s electronics return.Nature is healing. 😁
(DIR) Post #AzR8miQ0BNU0Mncmo4 by foone@digipres.club
2025-10-21T14:35:56Z
0 likes, 0 repeats
okay I have it showing all the keys, all the keys are in the right location, and wide/tall keys are properly highlighted... MOST OF THE TIME. If you're on the right side of a two-space-wide key (which you can get to by coming in from the top), it won't highlight the whole key, just the rest of it to the right
(DIR) Post #AzR8s5RxyjuvFK6YbI by foone@digipres.club
2025-10-21T14:37:02Z
0 likes, 0 repeats
I used @pndc's idea of just having a grid of the scancodes, and detecting wide/tall keys by the scancodes repeating, so as not to complicate the datastructure
(DIR) Post #AzR9TetTAAlft3suJc by foone@digipres.club
2025-10-21T14:43:43Z
1 likes, 0 repeats
okay I fixed the highlighting at the expense of slightly non-intuitive movement. Basically the cursor is always at the left-most top-most position of a large key, so starting at F11 and going down you end up at right-alt, not right-ctrl like you'd expect. Like so:
(DIR) Post #AzRAGlOvl0cqG810y0 by mandelhorn@mastodon.social
2025-10-21T14:51:47Z
0 likes, 0 repeats
@foone Out of curiosity: Why do you use the code that seeks repetitions to the left, to determine the new leftmost cursor position in the grid? Instead you could use it to seek the position from where te highlight code updates, and leave the cursor position as is?
(DIR) Post #AzRAGm7b4wM2UeugaW by foone@digipres.club
2025-10-21T14:52:41Z
0 likes, 0 repeats
@mandelhorn it's just to avoid having to split out a separate X,Y for the highlight and the cursor. I could do it, but it'd slightly complicate this already complicated code.
(DIR) Post #AzRAiEFwaCKVZPuNtY by foone@digipres.club
2025-10-21T14:57:42Z
0 likes, 0 repeats
trying to avoid over-complicating how I draw the highlight to make it look slightly better. managing 4x4 pixel sprites is way too nitpicky, even if I'm dealing with a screen this small
(DIR) Post #AzRBiW1GdhK4cGkCCO by foone@digipres.club
2025-10-21T15:08:54Z
0 likes, 0 repeats
hello world
(DIR) Post #AzRC9qfZyE76TqdJDc by nicholas@aklp.club
2025-10-21T15:14:20.247908Z
0 likes, 0 repeats
Ooohhhhh, or one button could rotate the cursor direction, and the other button could activate the movement 🤔
(DIR) Post #AzRCZyd6zsiQhJwDHk by foone@digipres.club
2025-10-21T15:18:09Z
1 likes, 0 repeats
@nicholas @ppxl maybe I'll make a joystick-controlled keyboard, where you have to drive a cursor around to different letters to type
(DIR) Post #AzRDWJ2fGNienhhg8m by nicholas@aklp.club
2025-10-21T15:29:35.666366Z
0 likes, 0 repeats
I hope my musings aren't annoying you, I'm enjoying watching your project in real time.
(DIR) Post #AzRDtXGyWGmzb5TRMu by Ronflaix@mastodon.gamedev.place
2025-10-21T15:33:18Z
0 likes, 0 repeats
@foone I take that whatever your keyboard du jour is it works, congrats!
(DIR) Post #AzRJEeXRCWvjz03xfU by migratory@jorts.horse
2025-10-21T16:33:02Z
0 likes, 0 repeats
@foone seems like https://joefatula.com/twoslice.html would fit here for some labels
(DIR) Post #AzRThpPGs4eJd6nGOu by gkrnours@mastodon.gamedev.place
2025-10-21T18:30:21Z
0 likes, 0 repeats
@foone maybe you could go morse
(DIR) Post #AzRTv6fhzVoGwPoVma by gkrnours@mastodon.gamedev.place
2025-10-21T18:32:53Z
0 likes, 0 repeats
@foone what if crane game keyboard?