Skip to content

Commit

Permalink
Merge pull request #495 from go-vgo/bitmap-pr
Browse files Browse the repository at this point in the history
Optimize keyboard code and Update examples
  • Loading branch information
vcaesar authored Apr 9, 2022
2 parents bfa6b23 + a2e387b commit e533734
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ func main() {
robotgo.TypeStr("だんしゃり", 0, 1)
// robotgo.TypeStr("テストする")

robotgo.TypeStr("Hi, Seattle space needle, Gold gate bridge, One world trade center.")
robotgo.TypeStr("Hi, Seattle space needle, Golden gate bridge, One world trade center.")
robotgo.TypeStr("Hi galaxy, hi stars, hi MT.Rainier, hi sea. こんにちは世界.")
robotgo.Sleep(1)

Expand Down
2 changes: 1 addition & 1 deletion examples/key/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func typeStr() {
robotgo.TypeStr("So, hi, bye! 你好, 再见!")
robotgo.Sleep(1)

robotgo.TypeStr("Hi, Seattle space needle, Gold gate bridge, One world trade center.")
robotgo.TypeStr("Hi, Seattle space needle, Golden gate bridge, One world trade center.")
robotgo.MilliSleep(100)

ustr := uint32(robotgo.CharCodeAt("So, hi, bye!", 0))
Expand Down
2 changes: 1 addition & 1 deletion key.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package robotgo

/*
// #include "key/keycode.h"
#include "key/goKey.h"
#include "key/keypress_c.h"
*/
import "C"

Expand Down
6 changes: 0 additions & 6 deletions key/goKey.h

This file was deleted.

3 changes: 3 additions & 0 deletions key/keypress.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
#ifndef KEYPRESS_H
#define KEYPRESS_H

#include <stdlib.h>
#include "../base/os.h"
#include "../base/types.h"

#include "keycode.h"
#include <stdbool.h>

Expand Down
1 change: 1 addition & 0 deletions key/keypress_c.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "keypress.h"
#include "../base/deadbeef_rand_c.h"
#include "../base/microsleep.h"
#include "keycode_c.h"

#include <ctype.h> /* For isupper() */
#if defined(IS_MACOSX)
Expand Down

0 comments on commit e533734

Please sign in to comment.