pub fn map_button( &mut self, input_id: InputID, key: Clickable )
	{
		let act   = PressKey  { key: key };
		let act2  = ReleaseKey{ key: key };

		let trig  = Trigger::OnDown( Box::new( act  ) );
		let trig2 = Trigger::OnUp  ( Box::new( act2 ) );

		let input = self.input_mut( input_id );

		input.add_trigger( trig  );
		input.add_trigger( trig2 );
	}
/// Map a button on the gamepad to a button on keyboard or mouse.
///
Map a button on the gamepad to a button on keyboard or mouse.
Map a button on the gamepad to a button on keyboard or mouse .
pub fn map_button( &mut self, input_id: InputID, key: Clickable )
	{
		let act   = PressKey  { key: key };
		let act2  = ReleaseKey{ key: key };
		let trig  = Trigger::OnDown( Box::new( act  ) );
		let trig2 = Trigger::OnUp  ( Box::new( act2 ) );
		let input = self.input_mut( input_id );
		input.add_trigger( trig  );
		input.add_trigger( trig2 );
	}
pub fn map_button ( & mut self , input_id : InputID , key : Clickable ) { let act = PressKey { key : key } ; let act2 = ReleaseKey { key : key } ; let trig = Trigger :: OnDown ( Box :: new ( act ) ) ; let trig2 = Trigger :: OnUp ( Box :: new ( act2 ) ) ; let input = self . input_mut ( input_id ) ; input . add_trigger ( trig ) ; input . add_trigger ( trig2 ) ; }
Map a button on the gamepad to a button on keyboard or mouse.
Map a button on the gamepad to a button on keyboard or mouse .
&mut self
input_id
InputID
key
Clickable
&mut self
input_id
InputID
key
Clickable