key.To/FromChar
This commit is contained in:
@@ -22,7 +22,7 @@ func NewRandom(start, stop byte) *Random {
|
||||
}
|
||||
|
||||
func (r *Random) Read() []Button {
|
||||
if rand.Int()%2 == 0 {
|
||||
if len(r.down) > 0 && rand.Int()%2 == 0 {
|
||||
was := r.down
|
||||
for i := range was {
|
||||
was[i].Down = false
|
||||
|
||||
Reference in New Issue
Block a user