
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-native-gamepad-controller-speedy
Advanced tools
A react-native component to interface with gamepads/joysticks/controllers without using native code.
A react-native component to interface with gamepads/joysticks/controllers without using native code.
React Native doesn't provide gamepad support - this module attempts to add support for gamepads without using any native code. This works by embedding an invisible WebView - since HTML5 has the gamepad API, these events can be propagated up from the embedded webpage, through the WebView component, and into whatever React Native component you want.
npm install react-native-gamepad-controller
Here's a minimal example:
import React from 'react';
import { Text, View } from 'react-native';
import GamepadController from 'react-native-gamepad-controller';
export default class App extends React.Component {
constructor(){
super();
this.state = {gamepad: 'Not connected. Try pressing a key'};
}
onGamepadData(data){
this.setState({gamepad: JSON.stringify(data)});
}
render() {
return (
<View>
<GamepadController onData={(data)=>{ this.onGamepadData(data) }} />
<Text>{this.state.gamepad}</Text>
</View>
);
}
}
A more detailed example/demo is available in the example/ folder.
NOTE: This has been tested an working on Android devices with a generic Bluetooth controller, but it has not been tested on iOS.
Pull requests are welcome!
FAQs
A react-native component to interface with gamepads/joysticks/controllers without using native code.
We found that react-native-gamepad-controller-speedy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.