Having a struggle here.. I am capturing iOS onscreen keyboard presses by capturing the characters that appear in a textview, converting those characters to ascii codes and sending the ascii codes to another device which is connected to a Windows PC and emulates a keyboard, which then calculates which keyboard key combinations need to be sent to the PC in order to replicate the character that was typed in to the soft iOS keyboard.
Works OK for plain ascii. I have a problem with the £ key though, of course since it is not in the normal ascii table.
B4i interprets the values as "new char: £, codepoint: 163"
string.GetBytes("utf8") doesn't convert this into anything. I don't know if there is any alternative encoding I can use which does.
Anyhow, the main problem I have is firstly in trying to maintain consistent encodings throughout this chain.
I also want this to work in different languages though, which may not be possible.
Here is my question:
I am wondering if it is possible to programmatically determine some properties of the iOS soft keyboard, so that I can know what locale it is in or something like that, so I can change the various encodings down the chain and set the keyboard emulator to use that local of keyboard?
In most cases the user would of course have their phone and their PC set to the same language.
Thanks, my brain hurts
Works OK for plain ascii. I have a problem with the £ key though, of course since it is not in the normal ascii table.
B4i interprets the values as "new char: £, codepoint: 163"
string.GetBytes("utf8") doesn't convert this into anything. I don't know if there is any alternative encoding I can use which does.
Anyhow, the main problem I have is firstly in trying to maintain consistent encodings throughout this chain.
I also want this to work in different languages though, which may not be possible.
Here is my question:
I am wondering if it is possible to programmatically determine some properties of the iOS soft keyboard, so that I can know what locale it is in or something like that, so I can change the various encodings down the chain and set the keyboard emulator to use that local of keyboard?
In most cases the user would of course have their phone and their PC set to the same language.
Thanks, my brain hurts