mirror of
https://github.com/EnumeratedDev/Typer.git
synced 2025-07-01 07:48:20 +00:00
Rename 'input' and 'mouseInput' functions to 'handleKeyInput' and 'handleMouseInput'
This commit is contained in:
parent
ab19981179
commit
f30eb3c46f
@ -138,13 +138,13 @@ func (window *Window) ProcessEvents() {
|
||||
window.screen.Sync()
|
||||
window.SyncBufferOffset()
|
||||
case *tcell.EventMouse:
|
||||
window.mouseInput(ev)
|
||||
window.handleMouseInput(ev)
|
||||
case *tcell.EventKey:
|
||||
window.input(ev)
|
||||
window.handleKeyInput(ev)
|
||||
}
|
||||
}
|
||||
|
||||
func (window *Window) input(ev *tcell.EventKey) {
|
||||
func (window *Window) handleKeyInput(ev *tcell.EventKey) {
|
||||
if ev.Key() == tcell.KeyRight { // Navigation Keys
|
||||
if window.CursorMode == CursorModeBuffer {
|
||||
// Get original cursor position
|
||||
@ -517,7 +517,7 @@ func (window *Window) input(ev *tcell.EventKey) {
|
||||
}
|
||||
}
|
||||
|
||||
func (window *Window) mouseInput(ev *tcell.EventMouse) {
|
||||
func (window *Window) handleMouseInput(ev *tcell.EventMouse) {
|
||||
mouseX, mouseY := ev.Position()
|
||||
|
||||
// Left click was pressed
|
||||
|
Loading…
x
Reference in New Issue
Block a user