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

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

Instance Method Summary collapse

Methods inherited from Definition

#bubbles=, #cancelable=

Instance Method Details

#at=(value) ⇒ Object



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

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

#axes=(value) ⇒ Object



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

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

#buttons=(value) ⇒ Object



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

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

#id=(value) ⇒ Object



9
10
11
# File 'opal/browser/event/gamepad.rb', line 9

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

#index=(value) ⇒ Object



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

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