Skip to content

Commit

Permalink
Update godoc and test
Browse files Browse the repository at this point in the history
  • Loading branch information
vcaesar committed Nov 28, 2021
1 parent 34fc3ff commit c466829
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion bitmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,12 +289,14 @@ func OpenBitmap(gpath string, args ...int) C.MMBitmapRef {
return bit
}

// Deprecated: use the BitmapFromStr(),
//
// BitmapStr bitmap from string
func BitmapStr(str string) C.MMBitmapRef {
return BitmapFromStr(str)
}

// BitmapFromStr bitmap from string
// BitmapFromStr read bitmap from the string
func BitmapFromStr(str string) C.MMBitmapRef {
cs := C.CString(str)
bit := C.bitmap_from_string(cs)
Expand Down
3 changes: 2 additions & 1 deletion test/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ func aRobotgo() {
robotgo.Move(x, y)
robotgo.Move(100, 200)

robotgo.MouseToggle("up")
robotgo.Toggle("left")
robotgo.Toggle("left", "up")

for i := 0; i < 1080; i += 1000 {
fmt.Println(i)
Expand Down

0 comments on commit c466829

Please sign in to comment.