pub fn map_toggle( &mut self, input_id: InputID, key: Clickable )
	{
		let mt    = ToggleButton{ button: key, state: false };
		let tt    = Trigger::OnUp( Box::new( mt ) );

		let input = self.input_mut( input_id );


		input.add_trigger( tt );
	}
/// Toggle a button on the keyboard or mouse.
/// This will toggle the state of a keyboard or mouse button between up and down on a click on the input button.
/// It holds the button down until clicked again.
///
Toggle a button on the keyboard or mouse.
This will toggle the state of a keyboard or mouse button between up and down on a click on the input button.
It holds the button down until clicked again.
Toggle a button on the keyboard or mouse . This will toggle the state of a keyboard or mouse button between up and down on a click on the input button . It holds the button down until clicked again .
pub fn map_toggle( &mut self, input_id: InputID, key: Clickable )
	{
		let mt    = ToggleButton{ button: key, state: false };
		let tt    = Trigger::OnUp( Box::new( mt ) );
		let input = self.input_mut( input_id );
		input.add_trigger( tt );
	}
pub fn map_toggle ( & mut self , input_id : InputID , key : Clickable ) { let mt = ToggleButton { button : key , state : false } ; let tt = Trigger :: OnUp ( Box :: new ( mt ) ) ; let input = self . input_mut ( input_id ) ; input . add_trigger ( tt ) ; }
Toggle a button on the keyboard or mouse.
Toggle a button on the keyboard or mouse .
&mut self
input_id
InputID
key
Clickable
&mut self
input_id
InputID
key
Clickable