mirror of
				https://github.com/onyx-and-iris/voicemeeter.git
				synced 2025-11-04 07:41:44 +00:00 
			
		
		
		
	Get prefix removed from getters
This commit is contained in:
		
							parent
							
								
									b116f04f51
								
							
						
					
					
						commit
						4c54d924b3
					
				
							
								
								
									
										12
									
								
								button.go
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								button.go
									
									
									
									
									
								
							@ -37,8 +37,8 @@ func (m *button) String() string {
 | 
				
			|||||||
	return fmt.Sprintf("MacroButton%d", m.index)
 | 
						return fmt.Sprintf("MacroButton%d", m.index)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// GetState returns the value of the State parameter
 | 
					// State returns the value of the State parameter
 | 
				
			||||||
func (m *button) GetState() bool {
 | 
					func (m *button) State() bool {
 | 
				
			||||||
	return m.getter(1)
 | 
						return m.getter(1)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -47,8 +47,8 @@ func (m *button) SetState(val bool) {
 | 
				
			|||||||
	m.setter(val, 1)
 | 
						m.setter(val, 1)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// GetStateOnly returns the value of the StateOnly parameter
 | 
					// StateOnly returns the value of the StateOnly parameter
 | 
				
			||||||
func (m *button) GetStateOnly() bool {
 | 
					func (m *button) StateOnly() bool {
 | 
				
			||||||
	return m.getter(2)
 | 
						return m.getter(2)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -57,8 +57,8 @@ func (m *button) SetStateOnly(val bool) {
 | 
				
			|||||||
	m.setter(val, 2)
 | 
						m.setter(val, 2)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// GetTrigger returns the value of the Trigger parameter
 | 
					// Trigger returns the value of the Trigger parameter
 | 
				
			||||||
func (m *button) GetTrigger() bool {
 | 
					func (m *button) Trigger() bool {
 | 
				
			||||||
	return m.getter(2)
 | 
						return m.getter(2)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user