Apex Legends Motion Controller Concept: A handheld motion controller that replaces the mouse functions in Apex Legends. Hardware: I used the Arduino Micro for it's native usb functions with a MPU 6050 accelerometer to mimic the movements of a mouse and control the camera movement. There are 3 buttons: one to control aiming, one to control shooting, and a button to turn around 180 degrees. When the game is not open, it can also just function as a mouse and control the cursor. Since it is just replacing the mouse it also functions in other games as well. Final Product: Video 1 Video 2 Code --------------------------------------------------- #include <MPU6050.h> #include <Wire.h> #include <I2Cdev.h> #include <Mouse.h> #include <Keyboard.h> MPU6050 mpu; int16_t ax, ay, az, gx, gy, gz; int16_t accx, accy, accz; int vx, vy; int TRIGGER_BUTTON = 5; int AIM_BUTTON = 6; int TURN_BUTTON = 8; int lastTurnPushed = 0; bool weaponModeOn = true; float a...
Comments
Post a Comment