I've looked through the documentation on both but I was very confused about how both of these work. I thought I had it working at one stage but it turns out I had implimented direct input instead

Could someone please show me working code on how both of these work?