BangleApps/apps/kbswipe
thyttan e6f49639be
Update lib.js to not clear the trace of user input
Change the way the display is updated as to keep user input trace intact until they lift their finger from the screen. 
Now only the marker is updated every second as opposed to the whole screen.
To achieve this the marker is reimplemented outside the wrapString-method with g.fillRect() and g.clearRect() as well as a newly introduced function findMarker().
2022-04-09 19:49:16 +02:00
..
ChangeLog Adding apps for keyboards on bangle.js 2 2022-04-05 16:49:19 +01:00
README.md Adding apps for keyboards on bangle.js 2 2022-04-05 16:49:19 +01:00
app.png Adding apps for keyboards on bangle.js 2 2022-04-05 16:49:19 +01:00
lib.js Update lib.js to not clear the trace of user input 2022-04-09 19:49:16 +02:00
metadata.json Adding apps for keyboards on bangle.js 2 2022-04-05 16:49:19 +01:00
screenshot.png Adding apps for keyboards on bangle.js 2 2022-04-05 16:49:19 +01:00

README.md

Swipe Keyboard

A library that provides the ability to input text by swiping PalmOS Graffiti-style characters onto the screen.

To get a legend of available characters, just tap the screen.

Usage

In your app's metadata, add:

  "dependencies": {"textinput":"type"},

From inside your app, call:

Bangle.loadWidgets();
Bangle.drawWidgets();
require("textinput").input({text:"Foo"}).then(result => {
  console.log("Text input", E.toJS(result));
});

The first argument to input is an object containing the following:

  • text - initial text to edit

(in the future, the ability to restrict usage of newline/etc may be added)

Make your own

You can create your own keyboard input apps. Just ensure that they have "type":"textinput", in their metadata and provide a library called textinput that exports an input method.