BindKeyboard sets the vertical and horizontal axes used by the KeyboardScroller.
(hori, vert string)
| 344 | |
| 345 | // BindKeyboard sets the vertical and horizontal axes used by the KeyboardScroller. |
| 346 | func (c *KeyboardScroller) BindKeyboard(hori, vert string) { |
| 347 | c.keysMu.Lock() |
| 348 | |
| 349 | c.verticalAxis = vert |
| 350 | c.horizontalAxis = hori |
| 351 | |
| 352 | defer c.keysMu.Unlock() |
| 353 | } |
| 354 | |
| 355 | // NewKeyboardScroller creates a new KeyboardScroller system using the provided scrollSpeed, |
| 356 | // and horizontal and vertical axes. |
no outgoing calls
no test coverage detected