Skip to contentSkip to conversation

Keyboard simulation

DISCUSSION S�bastien HINDERER 3 participants 5 messages Feb 28, 2001 – Mar 4, 2001

lore
Share & tools
lore
#0 lore raw

Hi,

I'm writting a driver so that my soft braille display can work with the BRLTTY daemon.
My braille computer contains a braille display, and a braille keyboard which I can use to enter characters that are transmitted to the computer. When my driver gets "normla" chars, he writes them to /dev/console. So for applications, it looks as if they came from the normal keyboard. Now, I'd like to be able to change the current virtual console and to view previously displayed screens (equivalent to shift+page up) just by pressing keys on the braille keyboard.
So my question is: What should my driver do when it detects that the "change tty" key or the "scroll key" was pressed on the braille keyboard? Should the driver change the current tty itself (scroll the screen), or is it possible to call the kernel exactly like the normal keyboard driver would do (transmit keycodes), saying "alt + function key was pressed", or "shift + page up/down was pressed".
Thank you very much for help. Sébastien.

#1 lore raw

Hi!

Quoted 7 lines

I'm writting a driver so that my soft braille display can work with the BRLTTY daemon.
My braille computer contains a braille display, and a braille keyboard which I can use to enter characters that are transmitted to the computer. When my driver gets "normla" chars, he writes them to /dev/console. So for applications, it looks as if they came from the normal keyboard. Now, I'd like to be able to change the current virtual console and to view

Quoted 8 lines

previously displayed screens (equivalent to shift+page up) just by pressing keys on the braille keyboard.
So my question is: What should my driver do when it detects that the "change tty" key or the "scroll key" was pressed on the braille keyboard? Should the driver change the current tty itself (scroll the screen), or is it possible to call the kernel exactly like the normal keyboard driver would do (transmit keycodes), saying "alt + function key was pressed", or "shift + page up/down was pressed".

Transmit keycodes is AFAIK not implemented in official drivers.

Take a look at vojtech's new input suite.
Pavel

Signature · 2 lines
Philips Velo 1: 1"x4"x8", 300gram, 60, 12MB, 40bogomips, linux, mutt,
details at http://atrey.karlin.mff.cuni.cz/~pavel/velo/index.html.
#3 lore raw
In reply to S�bastien HINDERER

Hi!

Quoted 4 lines
Quoted 1 line

Transmit keycodes is AFAIK not implemented in official drivers.

Maybe I misunderstand what you mean, but the kernel has had a keycode mode since before 1.0.

I meant ability for application to simulate pressing "shift" or "pageup". I do not believe we have that feature.
Pavel

Signature · 2 lines
I'm [email protected]. "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents at [email protected]
#4 lore raw
In reply to S�bastien HINDERER
Quoted 7 lines · Pavel Machek
Quoted 4 lines
Quoted 1 line

Transmit keycodes is AFAIK not implemented in official drivers.

Maybe I misunderstand what you mean, but the kernel has had a keycode mode since before 1.0.

I meant ability for application to simulate pressing "shift" or "pageup". I do not believe we have that feature.

No. But we have TIOCSTI, which will do this in raw scancode mode.