Commit Graph

18 Commits

Author SHA1 Message Date
vcaesar
c8fc1e36f4 Add more examples code 2022-02-09 09:26:46 -08:00
vcaesar
bbbbefb5ff add center mouse and update code style 2019-03-05 15:29:54 -04:00
vcaesar
4e658a4406 update rotation to int32 Fixed sometimes json.Unmarshal break 2019-02-27 09:59:41 -04:00
vcaesar
ab3379003d Fixed run code in mac warning 2019-02-24 09:19:44 -04:00
vcaesar
8d5c932532 fixed c99 func and update code style 2019-02-21 09:10:31 -04:00
vcaesar
2a4d6bbf54 rename add() func to add_hook() 2019-02-21 08:29:22 -04:00
vcaesar
b5ca357c14 refactor code, fixed bug and api 2019-02-20 11:07:25 -04:00
vcaesar
9fa8b6c408 add example and update code style 2019-02-19 11:32:48 -04:00
vcaesar
1da30b1d41 update code use c99 and update code style 2019-02-19 11:03:09 -04:00
vcaesar
fe1bbb57e6 update godoc and code style 2019-02-19 10:47:03 -04:00
Cauê Felchar
f0ddfd620c Made the library Asyncronous (#2)
* Part 1 of supporting async events

made the dispatch process send events via json through a channel (the c kind), made another function that receives it and sends it trough another channel (the go kind)

todo: remove usage of function-local data trough channel
todo:find error that is causing the c channel to fill up?

* Part 2 of making the lib async

 - New event struct mimiking C structs
 - changed c channel library to eb_chan
 - changed API to something more palatable

* General cleanup

* updated go.mod

oopsie

* Probably final touches

i swear this time

* Changed constants, keychar type and test function

now Keychar is a rune, so it can be used as a regular character.

* WIP adding better support for conversion between Scancodes and Keychars

added table, will add rest of support soon(tm)

* finished conversion table

* Satisfied stringer interface for easier debug and logging, returned old function

what the title says

* Satisfied stringer interface for easier debug and logging, returned old function

what the title says

* forgot to import unsafe
2019-02-19 10:31:25 -04:00
vcaesar
f27e2e5265 add event status and update code style 2018-11-13 12:43:04 -04:00
vcaesar
602a6294ff update code style 2018-11-12 16:39:16 -04:00
vcaesar
90cff033b9 #include <stdlib.h> 2018-09-17 13:36:29 -04:00
vcaesar
5d0c662549 add event c file 2018-09-16 19:25:32 -04:00
vcaesar
2cc3a5d7ce Update README.md and move code 2018-09-04 15:25:08 -04:00
vCaesar
3df4cff48b Fix invalid size 2017-04-22 19:50:38 +08:00
vCaesar
16089b2aa9 Initial commit 2017-02-06 16:55:01 +08:00