Email or username:

Password:

Forgot your password?
Top-level
Devine Lu Linvega

@la_ninpre sending utf8 out works! In left, if you ctrl+p a utf8 selection, it'll print it correctly

13 comments
la ninpre

@neauoire i was talking about typing on a keyboard

here: git.sr.ht/~rabbits/uxn/tree/ma

if i type some character that's not ascii, for example, รก (U+00E1), only the first byte (0xc3) of the utf-8 sequence 0xc3a1 gets recorded.

la ninpre

@neauoire wow, that's so cool. i'll go study the code then.
still i wonder if it will work with keyboard input in SDL...
one idea is to just send the text to the console port instead xD

la ninpre

@neauoire i was trying to say that what if we just send all input from the keyboard to the console port instead of controller. i know that this it not how it is supposed to work, but that would make multibyte input possible without rewriting uxntal code that expects one value from the Controller/key...
i hope i'm not confusing you, haha

Devine Lu Linvega

@la_ninpre Oh, haha. No that's not the way to do this, you want to run a controller vector evaluation for each byte.

la ninpre

@neauoire yes, i understand. but this means pretty much the same code has to be in both controller and console vectors, right?

Devine Lu Linvega

@la_ninpre It depends on the program, but in left for example, both vectors run the same <insert> subroutine.
git.sr.ht/~rabbits/left/tree/m

la ninpre replied to Devine Lu Linvega

@neauoire can you review a patch for uxnemu then? sent to your email.

la ninpre replied to Devine Lu Linvega

@neauoire i am sorry, did you get it? i suspect i could've sent it to the wrong address.

Devine Lu Linvega replied to la

@la_ninpre I did! I merged it locally but I want to test it some more, can you gimme 3-4 hours? if I hit an issue I'll let you know, otherwise it'll be merged

la ninpre replied to Devine Lu Linvega

@neauoire of course, it's okay. i asked not because i wanted you to review it asap, haha. i was just unsure about email address, i remember you were on gmail in the past

Go Up