| View previous topic :: View next topic |
| Author |
Message |
Bazza LXF regular

Joined: Sat Mar 21, 2009 11:16 am Posts: 1393 Location: Loughborough
|
Posted: Thu Jul 08, 2010 9:46 pm Post subject: This is a real toughy... |
|
|
Whatever I ask usually has a serious reply of 0, zero, so I
suspect this will be no different...
How do I read the two Caps Shift keys in "real time" under a
Linux GUI of any kind.
Code can be in C, C++, Assembly I don`t care just give me a clue.
I can EASILY do it in MikeOS and at least Windows up to Vista
but Linux has got me stumped... _________________ 73...
Bazza, G0LCU...
Team AMIGA... |
|
| Back to top |
|
 |
tuxmando
Joined: Fri Jul 27, 2007 2:35 pm Posts: 98
|
Posted: Thu Jul 08, 2010 10:42 pm Post subject: xev |
|
|
| While in X, you can launch xev (X Event Viewer) to see info about key presses. It will give you codes for keydown and release. Your chosen language should have libraries to check for keypresses. Mix together and see... |
|
| Back to top |
|
 |
tuxmando
Joined: Fri Jul 27, 2007 2:35 pm Posts: 98
|
|
| Back to top |
|
 |
tuxmando
Joined: Fri Jul 27, 2007 2:35 pm Posts: 98
|
|
| Back to top |
|
 |
Bazza LXF regular

Joined: Sat Mar 21, 2009 11:16 am Posts: 1393 Location: Loughborough
|
Posted: Fri Jul 09, 2010 3:36 am Post subject: |
|
|
Hi tuxmando...
Ooooh, I`m up at this time because I can`t sleep...
Thanks for the info but........
1) Xev does not display what I want, it does not allow for
a SIMULTANEOUS keypress of both Caps shifts...
I`ll be a bit more specific. I need to be able to READ the
Left Caps shift or the Right Caps Shift or BOTH simultaneously
or neither of bits 0 and 1 of absolute adress 0x417H, NOTE, in
"real time". I WILL eventually need to be able to write to bits
5 and 6 in exactly the same way to exactly the same address
also in "real time" in Linux, (preferably a GUI), and yes this can
be done...
2) I already know how to access absolute address 0x417H
in 16 bit assembly... I need to be able to read/write to the
same said address without getting a Segmentation Fault in
Linux assembly, (or C++), - OUCH!
3) I already know about Interrupts and their usage. And the
code you pointed to will not work under Linux. I have already
done direct access of absolute address 0x417H for MikeOS
and Windows for my needs but Linux eludes me. Also calling
BIOS interrupts inside Linux is not exactly easy. :O
Thanks for all your efforts though... :) _________________ 73...
Bazza, G0LCU...
Team AMIGA... |
|
| Back to top |
|
 |
tuxmando
Joined: Fri Jul 27, 2007 2:35 pm Posts: 98
|
Posted: Fri Jul 09, 2010 7:06 am Post subject: |
|
|
No worries  |
|
| Back to top |
|
 |
| View previous topic :: View next topic |
|