From 4c54d924b38f7fca5a71708193388c6a7b32b329 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Thu, 8 Dec 2022 10:24:52 +0000 Subject: [PATCH] Get prefix removed from getters --- button.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/button.go b/button.go index f700b99..7896fa5 100644 --- a/button.go +++ b/button.go @@ -37,8 +37,8 @@ func (m *button) String() string { return fmt.Sprintf("MacroButton%d", m.index) } -// GetState returns the value of the State parameter -func (m *button) GetState() bool { +// State returns the value of the State parameter +func (m *button) State() bool { return m.getter(1) } @@ -47,8 +47,8 @@ func (m *button) SetState(val bool) { m.setter(val, 1) } -// GetStateOnly returns the value of the StateOnly parameter -func (m *button) GetStateOnly() bool { +// StateOnly returns the value of the StateOnly parameter +func (m *button) StateOnly() bool { return m.getter(2) } @@ -57,8 +57,8 @@ func (m *button) SetStateOnly(val bool) { m.setter(val, 2) } -// GetTrigger returns the value of the Trigger parameter -func (m *button) GetTrigger() bool { +// Trigger returns the value of the Trigger parameter +func (m *button) Trigger() bool { return m.getter(2) }