Skip to content

Add keyboard support to inkview #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 16, 2025

Conversation

CatInBeard
Copy link
Contributor

@CatInBeard CatInBeard commented Apr 12, 2025

Changes

  • Added a new method to invoke the virtual keyboard
  • Implemented a handler to process user input from the virtual keyboard
  • Add top bar draw function

Motivation

I was using the inkview library and found it to be almost perfect for my needs, but it lacked keyboard support. I've added this functionality to my fork and believe it would be beneficial to include it in the main repository.

Please review the changes and let me know if you have any questions or concerns. I'm happy to discuss and refine the implementation as needed.

Copy link
Owner

@dennwc dennwc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you a lot for the contribution! A few minor requests:

@@ -110,3 +112,11 @@ func PowerOff() {
func OpenMainMenu() {
C.OpenMainMenu()
}

func LoadKeyboard() {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know the library's docs are basically non-existent at the moment, but could you write a small bit explaining how OpenKeyboard is different from LoadKeyboard? Is it just showing the keyboard?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I understood from reverse engineering the default applications, LoadKeyboard specifies which keyboard to use, and you need to specify the language of the keyboard from the standard set. OpenKeyboard displays the on-screen keyboard and tracks its changes.

@dennwc dennwc force-pushed the add-new-inkview-features branch from c451785 to 6fd450c Compare April 16, 2025 07:56
@dennwc dennwc merged commit 5592574 into dennwc:master Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants