Catching all inputs from external (bluetooth) keyboard

nj.

Question

I would like to catch/preview all keyboard inputs that our application receives.

It would be enough if only the inputs from the external keyboard is caught.

I've come around solutions examples such as register a notification observer for UITextViewTextDidChangeNotification and UITextFieldTextDidChangeNotification but since this requires a TextView or TextField to be the current first responder it does not capture all our needs.

An example for this is that we are using the scanning to filter a list where the entire view is the list and navigation buttons.

Are there any way to register an observer that can preview all key inputs the application recieves?

Background:

I have an iPhone application that scans barcodes to identify objects at several different views.

Currently we scan the barcodes either by the camera (using zbar library) or with an MFI-certified barcode scanner. In order to support more devices (for example an iPad) we are investigating other means to capture bar codes.

One of the device classes we are looking at are bluetooth scanners that identifies as a HID keyboard. This would be a great addition since it be usable with different products and manufactures.

In order to

storoj

Seems like usage of IOHID** functions may not be rejected by AppStore reviewers because IOKit is "white-list-framework" (Will Apple reject Mac OS App which uses IOKit framework?)

So you can really try to use callback function from this topic IOHIDEventSystemClientScheduleWithRunLoop with EXC_BAD_ACCESS, hope that helps! I used this code and it works even if your app is in background (just set special background mode), captures all system touch and keyboard events.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Catching all inputs from external (bluetooth) keyboard

From Dev

Read from an external bluetooth keyboard without UITextField

From Dev

iOS 8 Custom Keyboard with external bluetooth keyboard

From Dev

Prevent bluetooth keyboard from sleeping

From Dev

Reading inputs from Keyboard in Objective C

From Dev

rescue_from Error Handler In Rails Not Catching All Exceptions

From Dev

Catching all audio end events from dynamic content in jquery

From Dev

Retrieve all inputs values from a form AngularJS

From Dev

JQuery Creating Array from All Inputs and Extracting It

From Dev

JQuery Creating Array from All Inputs and Extracting It

From Dev

Retrieve all inputs values from a form AngularJS

From Dev

Writing, updating and reading lists to and from external files with user inputs

From Dev

Keep a hardware (bluetooth) keyboard from overriding an inputView in iOS 8

From Dev

How do I wake from sleep using a bluetooth Keyboard

From Dev

How to prevent Bluetooth mouse/keyboard from going Paired

From Dev

Use different keyboard inputs

From Dev

Read keyboard inputs in Linux

From Dev

RxJava - Backpressuring keyboard inputs?

From Dev

Multiple keyboard and mouse inputs

From Dev

FOSRestBundle Catching All Routes

From Dev

Catching all errors

From Dev

Catching all errors

From Dev

iOS key code capture from external bluetooth scanner

From Dev

Handling data from external Bluetooth device with GPS NMEA strings

From Dev

Use laptop as bluetooth keyboard?

From Dev

Bluetooth keyboard problem

From Dev

Will a bluetooth keyboard work with Bitlocker?

From Dev

Bluetooth Keyboard on 2 Distros

From Dev

Android Broadcast Receiver bluetooth events catching

Related Related

HotTag

Archive