chore: reduce size of public interface

This commit is contained in:
2021-10-30 10:28:20 +09:00
parent 2bb8bd6d8f
commit 01278ca83f
6 changed files with 19 additions and 14 deletions

View File

@@ -111,7 +111,7 @@ impl ButtonEvent {
}
#[inline]
pub fn handle_keyboard_input(pad: &mut Joypad, input: &WinitInputHelper) {
pub(crate) fn handle_keyboard_input(pad: &mut Joypad, input: &WinitInputHelper) {
use winit::event::VirtualKeyCode;
// TODO: What do I have to do to get a match statement here?
@@ -177,7 +177,7 @@ pub fn handle_keyboard_input(pad: &mut Joypad, input: &WinitInputHelper) {
}
#[inline]
pub fn handle_gamepad_input(pad: &mut Joypad, event: GamepadEvent) {
pub(crate) fn handle_gamepad_input(pad: &mut Joypad, event: GamepadEvent) {
use Button::*;
use GamepadEventType::*;