Stormworks: Build and Rescue

Stormworks: Build and Rescue

评价数不足
Lua Keyboard - Uppercase, Lowercase, Special Characters (ASCII)
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
71.934 KB
2021 年 11 月 20 日 上午 3:36
2022 年 4 月 28 日 下午 2:54
3 项改动说明 ( 查看 )

订阅以下载
Lua Keyboard - Uppercase, Lowercase, Special Characters (ASCII)

在 CrazyFluffyPony 的 1 个合集中
Ponys Microcontroller Tools
19 件物品
描述
All in one single lua script!

Easily use keyboard data within your own script.
This vehicle contains a microcontroller with two lua scripts and a bunch of logic connections. Your code will be placed inside the upper lua script. This script is already filled with some example code.

Features
  • Supported characters: all printable ASCII characters
  • Handles touchscreen data automatically (only single touchpoint)
  • Only single number channel required for communication, your script can use all other 31 number inputs (just 1 needed for the keyboard)
  • Responsive (automatically fits monitor size)

Recommendations
If you want to display lowercase characters in your script, then use this library:
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2090428857
12 条留言
CrazyFluffyPony  [作者] 2022 年 4 月 28 日 下午 2:58 
@xaonGames420

It works exactly as it should.

This is just a showcase, the erase key is not implemented, because YOU are supposed to write that code. I'm just providing the code that displays the keyboard and forwards the pressed keys.

It is probably not explained very well, but people you do projects that require a keyboard will easily understand the example.

Anyway i implemented the Erase Key and removed the red coloring of the open button (which is meant to indicate how long the button was pressed, but obviously just confuses people).
XaonGames420 2022 年 4 月 25 日 下午 5:08 
this does not work anymore..
when opening the open button turns red
when Open button is closed it stays red
close button does not turn a different color
Back/Erase Key does not work
CrazyFluffyPony  [作者] 2022 年 3 月 10 日 下午 1:23 
You cannot just "connect it", It is not meant to just be connected. It's meant for people who write their own script (e.g. a password field or a text input) and they use this as a helper script.
RandomGuy0400 2022 年 3 月 10 日 下午 1:16 
oh... how exactly do I connect them?
CrazyFluffyPony  [作者] 2022 年 3 月 10 日 下午 1:12 
If you read the description on this page, you can see that you need a special script to display lowercase, Stormworks cannot do it by itself
RandomGuy0400 2022 年 3 月 10 日 下午 1:10 
I press on the lowercase keys and it types the letter in uppercase
CrazyFluffyPony  [作者] 2022 年 3 月 10 日 下午 1:06 
Please describe it more detailed or send me a screenshot
RandomGuy0400 2022 年 3 月 10 日 上午 9:01 
lowercase doesn't seem to work
CrazyFluffyPony  [作者] 2021 年 11 月 21 日 下午 3:53 
It has been laying around a long time, integrated in PonyOS.
Upon request i now made a documentated standalone version.
Inverspe 2021 年 11 月 21 日 下午 3:25 
Interesting