Skip to content

Commit

Permalink
Rename device files to match class case
Browse files Browse the repository at this point in the history
  • Loading branch information
brianchirls committed Jul 30, 2022
1 parent 416408a commit 70d19f6
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 17 deletions.
8 changes: 4 additions & 4 deletions examples/breakout.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Gamepad from '../src/devices/gamepad';
// import Pointer from '../src/devices/pointer';
import Keyboard from '../src/devices/keyboard';
import Gamepad from '../src/devices/Gamepad';
// import Pointer from '../src/devices/Pointer';
import Keyboard from '../src/devices/Keyboard';
import AxisComposite from '../src/controls/AxisComposite';
import Action from '../src/Action';
import VirtualStick from '../src/devices/virtualstick';
import VirtualStick from '../src/devices/VirtualStick';
import domView from '../src/devices/virtualstick/domView';

import './breakout.css';
Expand Down
4 changes: 2 additions & 2 deletions examples/menu.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import html from 'html-loader!./menu.html';
import { Action } from '../src';
import Gamepad from '../src/devices/gamepad';
import Keyboard from '../src/devices/keyboard';
import Gamepad from '../src/devices/Gamepad';
import Keyboard from '../src/devices/Keyboard';
import PressInteraction from '../src/interactions/PressInteraction';
import './menu.css';

Expand Down
6 changes: 3 additions & 3 deletions examples/simple.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import html from 'html-loader!./simple.html';
import Gamepad from '../src/devices/gamepad';
import Keyboard from '../src/devices/keyboard';
import Gamepad from '../src/devices/Gamepad';
import Keyboard from '../src/devices/Keyboard';
import DPadComposite from '../src/controls/DPadComposite';
import AxisComposite from '../src/controls/AxisComposite';
import Action from '../src/Action';
import VirtualStick from '../src/devices/virtualstick';
import VirtualStick from '../src/devices/VirtualStick';
import domView from '../src/devices/virtualstick/domView';

document.body.innerHTML = html;
Expand Down
2 changes: 1 addition & 1 deletion src/Device.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export type DeviceEvents = {
};

/**
* An abstract class for hardware devices, such as {@link devices/keyboard.Keyboard}.
* An abstract class for hardware devices, such as {@link devices/Keyboard.Keyboard}.
*
* Extend this class to create new devices.
*/
Expand Down
8 changes: 4 additions & 4 deletions src/browser.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export * from './';

// devices
export { default as Gamepad } from './devices/gamepad';
export { default as Keyboard } from './devices/keyboard';
export { default as Pointer } from './devices/pointer';
export { default as VirtualStick } from './devices/virtualstick';
export { default as Gamepad } from './devices/Gamepad';
export { default as Keyboard } from './devices/Keyboard';
export { default as Pointer } from './devices/Pointer';
export { default as VirtualStick } from './devices/VirtualStick';

// controls
export { default as InputControl } from './controls/InputControl';
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
export { default as Action } from './Action';

// devices
// export { default as Gamepad } from './devices/gamepad';
// export { default as Keyboard } from './devices/keyboard';
// export { default as Pointer } from './devices/pointer';
// export { default as Gamepad } from './devices/Gamepad';
// export { default as Keyboard } from './devices/Keyboard';
// export { default as Pointer } from './devices/Pointer';

// controls
export { default as InputControl } from './controls/InputControl';
Expand Down

0 comments on commit 70d19f6

Please sign in to comment.