moved hidScanInput() to main()