Skip to content
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

x/mobile: X11 Key Events #19071

Open
noypi opened this issue Feb 14, 2017 · 2 comments
Open

x/mobile: X11 Key Events #19071

noypi opened this issue Feb 14, 2017 · 2 comments
Labels
mobile Android, iOS, and x/mobile
Milestone

Comments

@noypi
Copy link

noypi commented Feb 14, 2017

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

1.7 (sorry i am using windows at the office, the issue occurs at home)

What operating system and processor architecture are you using (go env)?

ubuntu amd64 (sorry i am using windows at the office, the issue occurs at home)

What did you do?

run flappy gopher

What did you expect to see?

key events are triggered

What did you see instead?

no key events triggered, and close button not functional.

key events are not yet implemented at

  • app/x11.go
  • app/x11.c

but shiny have implemented this:
https://godoc.org/golang.org/x/exp/shiny/driver/internal/x11key

Should gomobile reuse shiny?

@nigeltao
Copy link
Contributor

nigeltao commented Feb 23, 2017

It's not clear, in terms of layering, whether gomobile should re-use shiny, or shiny re-use gomobile, or whether they should both depend on some other library factored out.

Yes, x/mobile should probably translate key events, although the intent of the x/mobile/app package is to develop mobile apps, and mobile apps aren't usually primarily driven by key events. If you want to write a desktop app, the x/mobile probably isn't the solution.

@noypi
Copy link
Author

noypi commented Feb 28, 2017

i like to write mobile apps, but would test it in desktop.
i like to use x/mobile for now, perhaps shiny will have nice widgets in the future. so i would like it to be as abstract as it could get.
still trying to understand shiny though, but i need shiny to be customizable that i can add custom layout. example, what if cassowary is ported to golang, i like to use it in the future.

@gopherbot gopherbot added this to the Unreleased milestone Mar 21, 2017
@bradfitz bradfitz added the mobile Android, iOS, and x/mobile label Jul 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mobile Android, iOS, and x/mobile
Projects
None yet
Development

No branches or pull requests

4 participants