Class: Browser::Event::Gamepad::Definition

Inherits:
Definition show all
Defined in:
opal/browser/event/gamepad.rb

Instance Method Summary collapse

Instance Method Details

#at=(value) ⇒ Object



21
22
23
# File 'opal/browser/event/gamepad.rb', line 21

def at=(value)
  `#@native.timestamp = #{value}`
end

#axes=(value) ⇒ Object



25
26
27
# File 'opal/browser/event/gamepad.rb', line 25

def axes=(value)
  `#@native.axes = #{value}`
end

#buttons=(value) ⇒ Object



29
30
31
# File 'opal/browser/event/gamepad.rb', line 29

def buttons=(value)
  `#@native.buttons = #{value}`
end

#id=(value) ⇒ Object



13
14
15
# File 'opal/browser/event/gamepad.rb', line 13

def id=(value)
  `#@native.id = #{value}`
end

#index=(value) ⇒ Object



17
18
19
# File 'opal/browser/event/gamepad.rb', line 17

def index=(value)
  `#@native.index = #{value}`
end