This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from evdev import ecodes as e, InputDevice, UInput, categorize | |
# NTS - if opening /dev/uinput doesn't work, | |
# sudo chmod 666 /dev/uniput | |
# sudo modprobe uinput | |
# todo - get this from a config file | |
dev_name = '/dev/input/event14' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
This module exports one function, loadModules, which guesses then downloads the modules | |
which need to be loaded before bootstrapping the application. loadModules() returns an | |
array of Promises which can be waited on using Promise.all. | |
The guessing process can handle | |
- normal loader as route.loadChildren | |
- redirect as route.redirectTo | |
- nested lazy loaders using route.data.alsoLoad* |