Bitte ändert euer Passwort!

Im März 2026 wurde das Forum gehackt. Dabei hatten die Angreifer Zugriff auf die Datenbank und somit Zugriff auf eure Passwörter. Auch wenn das Forum kein Passwort im Klartext speichert, können die Angreifer eure Passwörter knacken. Bitte ändert daher dringend euer Passwort für das Forum. Solltet ihr das gleiche Passwort auch an anderer Stelle verwenden, ändert es bitte unbedingt an allen Stellen!

Lua API extentions

  • andreobi
  • Autor
  • Offline
  • Neues Mitglied
  • Neues Mitglied
  • Beiträge: 19
  • Thanks: 23

Lua API extentions

26 Aug. 2020 10:00
#
I'm publishing my wishes here, to find also other useres who might support my proposals:

1. Lua API to have read access to the timer values
i.e. system.getTimer(number)
Parameter: number= 1..10 to address the timer
Return value: timer value in seconds or nil if timer doesn't exist

2. Enable Trim Keys as YX input keys in a Lua form
i.e. to have a simpel direct input option to do something in a XY direction in a Lua app form.
The trim key function should be switchable between normal mode and Lua form:
- in normal operation mode the trim keys should have the standard functionality, as it is today
- if the Lua form is opened and the trim key assignment is requested, the trim keys should be available in the keyForm(key) as additional keys and the normal trim function is disabled as long as the Lua form is open.

I believe this enables much more simple user interfaces if any XY input is required.
i.e: this could be if you have a gps map and you would like to adjust it to your environment.
or you have a diagram and want to move a cursor or select something
or you want to to specify a xy coordinate (to specify a gps point on a map and get a hint when you passed that point)
How to steer the curor or something else is up to the Lua app and not part of the API.

The API just provide additional key definitions like: KEY_XLeft, KEY_XRight, KEY_YUp, KEY_YDown
and to prevent the normal behaviour i.e the form.preventDefault () or a new form.assignTrimkey() is needed.

Please leave a note, if you like my proposals to get a higher motivation on jeti to implement the proposals.

Kind regards
Andre
Folgende Benutzer bedankten sich: Mario42

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

  • rodrigo
  • Offline
  • Junior Mitglied
  • Junior Mitglied
  • Beiträge: 31
  • Thanks: 24

Re: Lua API extentions

26 Aug. 2020 10:49 - 26 Aug. 2020 10:50
#
Yes, please!

It would really be nice to have access to read the timer values.

Thank you for the proposal

Best regards
Rodrigo
Letzte Änderung: 26 Aug. 2020 10:50 von rodrigo.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

  • Mario42
  • Offline
  • Neues Mitglied
  • Neues Mitglied
  • Beiträge: 1
  • Thanks: 0

Re: Lua API extentions

27 Aug. 2020 06:02
#
Both ideas sound reasonable!

Access to the timers would make it easier to use them in LUA Apps without having to implement a separate timer (and therefore having to change tow timers if one still uses the system timer for alarms etc.)

Using the trim keys as x and y controllers (like the digital pad on a game pad) would open a lot of new possibilities of interaction with LUA Apps, @andreobi already mentioned some of them!

I would be very happy to see these extensions in one of the next feature upgrades!

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Ladezeit der Seite: 0.503 Sekunden
Powered by Kunena Forum