<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Kassen,<div class="Ih2E3d"></div></blockquote><div><br>Hey, Les! <br>
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d"><br></div>
Actually, yes I do have such an example, specifically the number keys (the ones above the keyboard). &nbsp;On British and Belgian keyboards the number keys return completely different message.which() codes. &nbsp;The Belgian keyboard is particularly tricky as it&#39;s number keys are all replaced with special French characters. &nbsp;So when I made a numeric menu, my Belgian friend couldn&#39;t work the program. &nbsp;He eventually played around with it and found that some of the letter keys gave numeric codes, and gained access into the program that way. &nbsp;Also the British numbers didn&#39;t work, and I haven&#39;t had a German user yet but I expect a similar problem.<br>

</blockquote><div><br>Hmmm, yes, and out of interest I just questioned a Australian correspondent of mine who reported that her keyboard too was unlike the US layout with regard to number placement (for example no key to the left of the &quot;1&quot; / &quot;!&quot; key). <br>
&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
So I made number / letter combinations for the menu like 1 or a, 2 or b, 3 or c, etc. &nbsp;and that helped a lot, but still there are problems.<br>
</blockquote><div><br>Yes... for example the French saw a need to swap two plain letters on regular keyboards. I think it&#39;s important to respect everyone&#39;s culture and traditions but at times the French keyboard has challenged that belief of mine. I&#39;m sure many of our French friends have had the exact opposite experience, know exactly what that feeling is like, and will forgive my fit of intolerance there :¬).<br>
&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
When we get cross-platform MAUI, I&#39;ll make the program graphical again and that will solve the keyboard issue, but I really do think it is something that is not quite kosher. &nbsp;I mean, after all we want our ChucK programs to work in the UK and Belgium, right? :)<br>

</blockquote><div><br>Oh, yes, and China and Arabia as well, if at all possible.<br>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Maybe I should use message.ascii(), do you think that would solve it? &nbsp;Maybe that&#39;s *why* message.ascii() exists?<br>
</blockquote><div><br>I think so. I think it&#39;s important to start with thinking about *what* you want. For example; on my sequencer the lower row of keyboard keys affects effects on the drums. On a NL keyboard this runs like;<br>
]zxcvbnm,.-<br><br>while on a US one it goes; <br></div></div>zxcvbnm,./<br><br>In order to be able to use the same interface in terms of key-positioning on both I use msg.which() there and skip the &quot;]&quot; on the Dutch one, that way it&#39;s the same. For other applications, like yours, the labeling on the keys is more important and I&#39;d use the ascii value since that is actually what you are trying to refer to.<br>
<br>It&#39;s my opinion that Spencer did a amazing job at the updated HID implementation (which includes the keyboard) and that this is one of the cleanest aspects to ChucK. I find it very pleasant to work with and to me it seems like it&#39;s been done with great care, I&#39;m quite sure these options are there on purpose and with exactly this type of question in mind. So far you haven&#39;t encountered a UK DVORAK keyboard but I bet those exist and anticipate those would throw off your &quot;numbers or letters&quot; plan completely.<br>
<br>It&#39;s very easy to overlook the tricky nature of this problem since we are all so intimately familiar with our own keyboards. I remember I was looking at a (Dutch) television quiz years ago and the hostess asked &quot;what character do you get when you press shift plus 2 on a computer keyboard&quot;. According to her that should be a &quot;@&quot; and whatever the contestant answered was wrong (for me it&#39;s a quotation mark). Somehow whatever process determined those questions completely overlooked the bewildering range of keyboard layouts that are out there (I thought it was a bit unfair). If you think it&#39;s tricky now; have a look at the keyboard layout settings in your favourite OS; there are different models from various manufacturers and most of those can come configured for a huge range of languages. I wouldn&#39;t be surprised if there were 5 digits worth of keyboard layouts that we might encounter in the world.<br>
<br>So... yes, ascii should be the way to go, I think that would make your problems go away, at least until you get users that have a different character set configured. I have no idea at all how to deal with that.<br><br>
Yours,<br>Kas.<br>