Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1.03 KB

File metadata and controls

37 lines (25 loc) · 1.03 KB

luxboard lite

Virtual keyboard for Firefly Zero apps using the Rust SDK.

a screenshot taken from Firefly Zero of a dark gray, QWERTY layout keyboard with a light gray outline around each key. the selected key, 'OK', is highlighted in blue. above the keyboard is the text, "hello, world!"

Installation

cargo add firefly-keyboard

Usage

// fn boot()
let opts = firefly_keyboard::Options::default();
let kbd = firefly_keyboard::Keyboard::new(opts);

// fn update()
kbd.update();
if !kbd.is_open() {
    let text = kbd.text.clone();
    // ...
}

// fn render()
kbd.render();

See examples/keyboard/main.rs for a complete example.

License

MIT License. Feel free to use the package in any apps and games and modify it for your needs.

Initially developed by Nanobot567 and is currently officially maintained by the Firefly Zero core team.