class GBA::Reg::KEYCNT
- GBA::Reg::KEYCNT
- BitField(UInt16)
- Reference
- Object
Included Modules
Defined in:
crab/gba/reg.crConstant Summary
-
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
Instance Method Summary
-
#==(other : self)
Returns
true
if this reference is the same as other. - #a : Bool
- #a=(val : Bool) : Nil
- #b : Bool
- #b=(val : Bool) : Nil
- #down : Bool
- #down=(val : Bool) : Nil
-
#hash(hasher)
See
Object#hash(hasher)
- #irq_condition : Bool
- #irq_condition=(val : Bool) : Nil
- #irq_enable : Bool
- #irq_enable=(val : Bool) : Nil
- #l : Bool
- #l=(val : Bool) : Nil
- #left : Bool
- #left=(val : Bool) : Nil
- #not_used : UInt16
- #not_used=(val : UInt16) : Nil
- #r : Bool
- #r=(val : Bool) : Nil
- #right : Bool
- #right=(val : Bool) : Nil
- #select : Bool
- #select=(val : Bool) : Nil
- #start : Bool
- #start=(val : Bool) : Nil
-
#to_s(io : IO) : Nil
Appends a short String representation of this object which includes its class name and its object address.
- #up : Bool
- #up=(val : Bool) : Nil
- #value : T
- #value=(value : T)
Instance methods inherited from module GBA::Reg::Base16
read_byte(byte_num : Int) : UInt8
read_byte,
write_byte(byte_num : Int, byte : UInt8) : UInt8
write_byte
Constructor Detail
Instance Method Detail
def ==(other : self)
#
Description copied from class Reference
Returns true
if this reference is the same as other. Invokes same?
.
def to_s(io : IO) : Nil
#
Description copied from class Reference
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>