|
@ -264,11 +264,19 @@ pub struct CharacterMaterials { |
|
|
pub tp: u32,
|
|
|
pub tp: u32,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
#[derive(Clone)]
|
|
|
|
|
|
|
|
|
#[derive(Clone, Debug)]
|
|
|
pub struct CharacterKeyboardConfig {
|
|
|
pub struct CharacterKeyboardConfig {
|
|
|
pub keyboard_config: [u8; 0x16C],
|
|
|
pub keyboard_config: [u8; 0x16C],
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
impl Default for CharacterKeyboardConfig {
|
|
|
|
|
|
fn default() -> CharacterKeyboardConfig {
|
|
|
|
|
|
CharacterKeyboardConfig {
|
|
|
|
|
|
keyboard_config: DEFAULT_KEYBOARD_CONFIG1,
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
impl CharacterKeyboardConfig {
|
|
|
impl CharacterKeyboardConfig {
|
|
|
fn new(preset: usize) -> CharacterKeyboardConfig {
|
|
|
fn new(preset: usize) -> CharacterKeyboardConfig {
|
|
|
match preset {
|
|
|
match preset {
|
|
@ -309,7 +317,7 @@ impl CharacterKeyboardConfig { |
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
#[derive(Clone)]
|
|
|
|
|
|
|
|
|
#[derive(Clone, Debug)]
|
|
|
pub struct CharacterGamepadConfig {
|
|
|
pub struct CharacterGamepadConfig {
|
|
|
pub gamepad_config: [u8; 0x38],
|
|
|
pub gamepad_config: [u8; 0x38],
|
|
|
}
|
|
|
}
|
|
|