Skip to content

firefly-zero/firefly-keyboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

⌨️ A rust crate for virtual keyboard for Firefly Zero

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages