abstract struct SF::Event::JoystickButtonEvent
- SF::Event::JoystickButtonEvent
- SF::Event
- Struct
- Value
- Object
Overview
Joystick buttons events parameters (JoystickButtonPressed, JoystickButtonReleased)
Direct Known Subclasses
Defined in:
window/obj.crConstructors
Instance Method Summary
- 
        #button : UInt32
        
          Index of the button that has been pressed (in range `0 ... 
- #button=(button : Int)
- 
        #dup : JoystickButtonEvent
        
          Returns a shallow copy of this object. 
- 
        #joystick_id : UInt32
        
          Index of the joystick (in range `0 ... 
- #joystick_id=(joystick_id : Int)
Instance methods inherited from struct SF::Event
  
  
    
      initialize
    initialize
    
  
    
  Constructor methods inherited from struct SF::Event
  
  
    
      new
    new
    
  
    
  
    
    
    
  
    
    
    
  
    
    
    
  
Constructor Detail
Instance Method Detail
        
        def button : UInt32
        #
      
      
        Index of the button that has been pressed (in range 0 ... Joystick::ButtonCount)
        
        def dup : JoystickButtonEvent
        #
      
      
        
              Description copied from struct Value
            
          
          Returns a shallow copy of this object.
Because Value is a value type, this method returns self,
which already involves a shallow copy of this object because
value types are passed by value.