revert ec8b0ccf75
revert changed them to scancodes
parent
ec8b0ccf75
commit
8c74c0f771
|
@ -20,24 +20,24 @@ pub struct InputConfigs {}
|
|||
#[derive(Deserialize, Serialize)]
|
||||
pub struct KeyboardConfig {
|
||||
// directionals
|
||||
Up: ScanCodes,
|
||||
Down: ScanCodes,
|
||||
Right: ScanCodes,
|
||||
Left: ScanCodes,
|
||||
Up: u32,
|
||||
Down: u32,
|
||||
Right: u32,
|
||||
Left: u32,
|
||||
|
||||
// the punches
|
||||
LightPunch: ScanCodes,
|
||||
MediumPunch: ScanCodes,
|
||||
HeavyPunch: ScanCodes,
|
||||
LightPunch: u32,
|
||||
MediumPunch: u32,
|
||||
HeavyPunch: u32,
|
||||
|
||||
// the kicks
|
||||
LightKick: ScanCodes,
|
||||
MediumKick: ScanCodes,
|
||||
HeavyKick: ScanCodes,
|
||||
LightKick: u32,
|
||||
MediumKick: u32,
|
||||
HeavyKick: u32,
|
||||
|
||||
// Macros
|
||||
PunchMacro: ScanCodes,
|
||||
KickMacro: ScanCodes,
|
||||
PunchMacro: u32,
|
||||
KickMacro: u32,
|
||||
}
|
||||
|
||||
impl Default for KeyboardConfig {
|
||||
|
@ -64,7 +64,6 @@ impl Default for KeyboardConfig {
|
|||
/// TODO finish this
|
||||
/// UNTESTED AND UNFINISHED
|
||||
#[repr(u32)]
|
||||
#[derive(Deserialize, Serialize)]
|
||||
pub enum ScanCodes {
|
||||
Escape = 0x01,
|
||||
Key1 = 0x02,
|
||||
|
|
Loading…
Reference in New Issue