go-gtk | Go binding for GTKHopefully support following widgets
kandi X-RAY | go-gtk Summary
kandi X-RAY | go-gtk Summary
Go binding for GTK
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of go-gtk
go-gtk Key Features
go-gtk Examples and Code Snippets
Community Discussions
Trending Discussions on go-gtk
QUESTION
I can't seem to find a cross-platform library with Go that supports checking the state of the keyboard.
I'd rather not use something so heavy as Qt as it makes it quite hard to cross-compile and the GUI elements are very simple. If anybody could point me in the right direction, that would be amazing.
Thanks a ton.
Stuff I've tried:
https://mattn.github.io/go-gtk/
https://github.com/gotk3/gotk3
https://github.com/andlabs/ui (My favorite thus far, very lightweight.) If there is something I could use alongside this, that would be great as well.
EDIT:
Hey guys, a few months later just wanted to give an update. I ended up going the Qt route. Therecipe's bindings are pretty solid, aside from a few bugs. Getting proper keyboard input to put it short was nothing more than a pain in the ass.
...ANSWER
Answered 2017-Feb-25 at 05:20I found GLFW to be pretty straightforward to get set up. https://github.com/go-gl/glfw
If you want something even more cross platform, try out https://github.com/goxjs/glfw
It has conditional compilation which lets you compile on desktop platforms normally, but also to gopherjs so you can run the same code in a browser canvas.
Here a keyboard handler package I made with it: https://github.com/Omustardo/gome/blob/master/input/keyboard/keyboard.go
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install go-gtk
http://www.gtk.org/download/windows.php
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page