After getting a raw event from PollRawEvent function call, you can parse it again into an ordinary one using termbox logic. That is parse an event as termbox would do it. Returned event in addition to usual Event struct fields sets N field to the amount of bytes used within 'data' slice. If the length of 'data' slice is zero or event cannot be parsed for some other reason, the function will return a special event type: EventNone.
IMPORTANT: EventNone may contain a non-zero N, which means you should skip these bytes, because termbox cannot recognize them.
NOTE: This API is experimental and may change in future.
ParseEvent is referenced in 4 repositoriesgithub.com/carbonsrv/carbon
- 1 reference in modules/middleware/bind.go
- 1 reference in wrapper.go
- 1 reference in cmd/reversi/main.go