text typing according to keyboard

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
Sparx
Party member
Posts: 125
Joined: Thu Apr 02, 2009 9:54 am
Location: Aachen, Germany

text typing according to keyboard

Post by Sparx »

in LoveUi i foudn something like this:

Code: Select all

				local chars={} --when keys shifted
				chars["1"]="!";chars["a"]="A";chars["k"]="K";chars["u"]="U";chars["]"]="}"
				chars["2"]="@";chars["b"]="B";chars["l"]="L";chars["v"]="V";chars["\\"]="|"
				chars["3"]="#";chars["c"]="C";chars["m"]="M";chars["w"]="W";chars[";"]=":"
				chars["4"]="$";chars["d"]="D";chars["n"]="N";chars["x"]="X";chars["\'"]="\""
				chars["5"]="%";chars["e"]="E";chars["o"]="O";chars["y"]="Y";chars[","]="<"
				chars["6"]="^";chars["f"]="F";chars["p"]="P";chars["z"]="Z";chars["."]=">"
				chars["7"]="&";chars["g"]="G";chars["q"]="Q";chars["`"]="~";chars["/"]="?"
				chars["8"]="*";chars["h"]="H";chars["r"]="R";chars["-"]="_";
				chars["9"]="(";chars["i"]="I";chars["s"]="S";chars["="]="+";
				chars["0"]=")";chars["j"]="J";chars["t"]="T";chars["["]="{";chars[" "]=" ";
to have upper case...
Is there a good function to convert a key signal into the country dependand char?
Not only having problems with specialchars but with z and y to....
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: text typing according to keyboard

Post by bartbes »

Already implemented in 0.6.0.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests