If you use startx or init 3, the xessionrc is a good solution
echo "xinput..yourcommand" >> $HOME/.xsessionrc
If you use xfce on init 4/5 a good solution is to create a .destkop file which point to a script, in which you type the commands.
For example
vim .config/autostart/xinput.desktop
[Desktop Entry]
Hidden=false
Version=1.0
Name=xinput
Name[no]=xinput
Name[pt_BR]=xinput
Name[ru]=xinput
Name[sl]=xinput
Name[sv]=xinput
Comment=xinput
Comment[no]=xinput
Icon=xinput
Terminal=false
Type=Application
StartupNotify=false
Categories=System;
Exec=/home/you/scripts/xinput.sh
RunHook=0
vim /home/you/scripts/xinput.sh
#!/bin/bash
xinput..yourcommand
Make it executable
chmod +x /home/you/scripts/xinput.sh
At the next login the command will run.