Skip to content

Commit

Permalink
added numeric keys for future functions
Browse files Browse the repository at this point in the history
  • Loading branch information
talkkonnect committed Jul 30, 2021
1 parent 7dc8204 commit 8b7af89
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
27 changes: 24 additions & 3 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ var (
type Talkkonnect struct {
Config *gumble.Config
Client *gumble.Client
VoiceTarget *gumble.VoiceTarget
Name string
Address string
Username string
Expand Down Expand Up @@ -526,10 +527,30 @@ keyPressListenerLoop:
case term.KeyCtrlX:
b.cmdDumpXMLConfig()
default:
if ev.Ch != 0 {
switch ev.Ch {
case 48:
log.Println("Reserved Key 0")
case 49:
log.Println("Reserved Key 1")
case 50:
log.Println("Reserved Key 2")
case 51:
log.Println("Reserved Key 3")
case 52:
log.Println("Reserved Key 4")
case 53:
log.Println("Reserved Key 5")
case 54:
log.Println("Reserved Key 6")
case 55:
log.Println("Reserved Key 7")
case 56:
log.Println("Reserved Key 8")
case 57:
log.Println("Reserved Key 9")
}
if ev.Ch < 48 || ev.Ch > 57 {
log.Println("error: Invalid Keypress ASCII ", ev.Ch, "Press <DEL> for Menu")
} else {
log.Println("error: Key Not Mapped, Press <DEL> for menu", ev.Ch)
}
}
case term.EventError:
Expand Down
4 changes: 2 additions & 2 deletions xmlparser.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ import (

//version and release date
const (
talkkonnectVersion string = "1.64.01"
talkkonnectReleased string = "Jul 22 2021"
talkkonnectVersion string = "1.64.02"
talkkonnectReleased string = "Jul 30 2021"
)

// Generic Global Variables
Expand Down

0 comments on commit 8b7af89

Please sign in to comment.