Is there anyway to use an iphone/ipad as a mouse/keyboard locally (with a wire)?
There are apps such as Mobile Mouse Remote available which purport to offer various HID functions over USB. (This is not an endorsement of this specific product, just an example.) Connecting over WiFi seems to be more widely requested, but searching the web still turns up several non-wireless solutions.