如何使用定制TI程序中的箭头键(How to use the arrow keys in a custom TI program)

编程入门 行业动态 更新时间:2024-10-24 19:25:15
如何使用定制TI程序中的箭头键(How to use the arrow keys in a custom TI program)

我已经查看了尽可能多的功能,而且我仍然找不到可以拦截TI箭头键单击的单击功能。

I have looked at as many functions as I can and I still can't find one that lets you intercept the click of a TI arrow key click.

最满意答案

对于使用“Prog”按钮运行的Basic程序,您需要调用getKey ,它返回按下最后一个按钮的键代码。 箭头按钮被映射到代码24和34 。

更多信息可在TI-Basic Developer的“阅读按键”标题下找到。

For Basic programs, which are run with the "Prog" button, you'll need to call getKey, which returns a key code for the last button pressed. The arrow buttons are mapped to codes 24, 25, 26, and 34.

More information is available at TI-Basic Developer, underneath the heading "Reading Keypresses".

更多推荐

本文发布于:2023-08-05 14:21:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1434076.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何使用   程序   箭头键   TI   program

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!