Skip to content

Commit

Permalink
not working example
Browse files Browse the repository at this point in the history
Signed-off-by: Vasiliy Tolstov <[email protected]>
  • Loading branch information
vtolstov committed Jun 12, 2017
1 parent 5139d1d commit a45bca1
Show file tree
Hide file tree
Showing 19 changed files with 2,078 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@

# Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736
.glide/
example/client/client
example/server/server
2 changes: 2 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
MIT License

Copyright (c) 2013 Mitchell Hashimoto
Copyright (c) 2016-2017 Kate Ward
Copyright (c) 2017 Vasiliy Tolstov

Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
46 changes: 46 additions & 0 deletions button_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions buttons.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package vnc

// Button represents a mask of pointer presses/releases.
type Button uint8

//go:generate stringer -type=Button

// All available button mask components.
const (
BtnLeft Button = 1 << iota
BtnMiddle
BtnRight
BtnFour
BtnFive
BtnSix
BtnSeven
BtnEight
BtnNone Button = 0
)

func Mask(button Button) uint8 {
return uint8(button)
}
Loading

0 comments on commit a45bca1

Please sign in to comment.