GBA::Reg::KEYCNT
Inherits GBA::Reg::Base16 < BitField < Reference < Object
Constants
FIELDS = [{a, Bool, 1, false, false}, {b, Bool, 1, false, false}, {:select, Bool, 1, false, false}, {start, Bool, 1, false, false}, {right, Bool, 1, false, false}, {left, Bool, 1, false, false}, {up, Bool, 1, false, false}, {down, Bool, 1, false, false}, {r, Bool, 1, false, false}, {l, Bool, 1, false, false}, {not_used, T, 4, false, false}, {irq_enable, Bool, 1, false, false}, {irq_condition, Bool, 1, false, false}] of Tuple(String, Crystal::Macros::Path, Int32, Bool, Bool)
SIZE = 16
Constructors
new(value : T)
Instance methods
==(other : self)
Returns true if this reference is the same as other. Invokes same?.
a
b
down
hash(hasher)
See Object#hash(hasher)
irq_condition
irq_enable
l
left
not_used
not_used=(val : T) : Nil
r
right
select
start
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>
up
value
value=(value : T)