functions not needed
This commit is contained in:
parent
eb30566a82
commit
02bb2d797c
@ -18,13 +18,8 @@ bitflags::bitflags!{
|
||||
const Use=1<<14;//Interact with object
|
||||
const PrimaryAction=1<<15;//LBM/Shoot/Melee
|
||||
const SecondaryAction=1<<16;//RMB/ADS/Block
|
||||
}
|
||||
}
|
||||
impl Controls{
|
||||
pub const fn wasd()->Self{
|
||||
Self::MoveForward.union(Self::MoveLeft).union(Self::MoveBackward).union(Self::MoveRight)
|
||||
}
|
||||
pub const fn wasdqe()->Self{
|
||||
Self::MoveForward.union(Self::MoveLeft).union(Self::MoveBackward).union(Self::MoveRight).union(Self::MoveUp).union(Self::MoveDown)
|
||||
|
||||
const WASD=Self::MoveForward.union(Self::MoveLeft).union(Self::MoveBackward).union(Self::MoveRight).bits();
|
||||
const WASDQE=Self::MoveForward.union(Self::MoveLeft).union(Self::MoveBackward).union(Self::MoveRight).union(Self::MoveUp).union(Self::MoveDown).bits();
|
||||
}
|
||||
}
|
@ -199,8 +199,8 @@ impl ControlsActivation{
|
||||
}
|
||||
pub const fn full_3d()->Self{
|
||||
Self{
|
||||
controls_mask:Controls::wasdqe(),
|
||||
controls_intersects:Controls::wasdqe(),
|
||||
controls_mask:Controls::WASDQE,
|
||||
controls_intersects:Controls::WASDQE,
|
||||
controls_contains:Controls::empty(),
|
||||
}
|
||||
}
|
||||
@ -208,8 +208,8 @@ impl ControlsActivation{
|
||||
//Normal
|
||||
pub const fn full_2d()->Self{
|
||||
Self{
|
||||
controls_mask:Controls::wasd(),
|
||||
controls_intersects:Controls::wasd(),
|
||||
controls_mask:Controls::WASD,
|
||||
controls_intersects:Controls::WASD,
|
||||
controls_contains:Controls::empty(),
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user