提交 1abc60d3 编写于 作者: N nsf

Add EventError variant decsription to the Event type.

上级 3180f864
......@@ -11,8 +11,9 @@ type (
Attribute uint16
)
// This type represents a termbox event. The 'Mod', 'Key' and 'Ch' fields are valid
// if 'Type' is EventKey. The 'Width' and 'Height' fields are valid if 'Type' is EventResize.
// This type represents a termbox event. The 'Mod', 'Key' and 'Ch' fields are
// valid if 'Type' is EventKey. The 'Width' and 'Height' fields are valid if
// 'Type' is EventResize. The 'Err' field is valid if 'Type' is EventError.
type Event struct {
Type EventType // one of Event* constants
Mod Modifier // one of Mod* constants or 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册