![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| Shift + Numpad |
|
|
#1 (permalink) |
|
Addict
Join Date: Apr 2007
Posts: 9
![]() |
I am developing a profile for Search & Rescue 4:
![]() Everything is working apart from the searchlight panning controls, Shift + Numpad 2/4/6/8. If I press the keys in Notepad, the cursor moves. TB client mode reports VK_LEFT etc. VK_L/R/U/D will not work in-game as the cursor keys are used for the cyclic controls. I have tried macro_select = predef: SHIFT, KEYDOWN macro_select = predef: NUMPADx, KEYDOWN macro_deselect = predef: NUMPADx, KEYUP macro_deselect = predef: SHIFT, KEYUP and macro_select = rawkey: VK_SHIFT macro_select = rawkey: VK_NUMPADx macro_deselect = rawkey: VK_NUMPADx, KEYUP macro_deselect = rawkey: VK_SHIFT, KEYUP Both of these send the numbers to Notepad instead of moving the cursor. They do cause the searchlight to pan but it doesn't stop when you let go. The shift key seems to be sticking as the cursor keys create a selection in Notepad until I press and release the left shift key. Any ideas? Kev. TB V1.3.0(R16) Client/Server, TBTk V1.3(R4), LinITX 8.4" 800x600 |
|
|
|
| Re: Shift + Numpad |
|
|
#2 (permalink) |
|
Toolkit Creator
Join Date: May 2006
Location: On your Six!
Posts: 1,870
![]() |
Not sure....
Do you have NumLock on? It reports VB_LEFT? But it should be reporting VB_NUMPADx, right? All I can think of at the moment is that without NumLock on, the Numpad keys act like the arrow keys, so maybe that's why it reports VK_LEFT.
__________________
(a.k.a. Snacko) Touchscreen: Innovatek TM-868 8"; Running Local Mode on XP Pro ![]() |
|
|
|
| Re: Shift + Numpad |
|
|
#3 (permalink) |
|
Addict
Join Date: Apr 2007
Posts: 9
![]() |
I should have been clearer, I was referring to what the *TB* tab shows coming from the keyboard in Client mode when I mentioned VK_LEFT, it's produced by Shift+Numpad4 with Numlock on.
I have played with it a bit more now. If I start up in Client/Server mode and touch the buttons with Notepad active I get 2, 4, 6 & 8. If I then switch the Server into Client mode and go to the *TB* tab the predef line shows NUMPADx and sometimes SHIFT. Therefore I can only assume that the keys are getting stuck somehow, this only appears to happen with the number pad keys. I can't test in Local mode as the game won't play nicely with multiple displays. Kev TB V1.3.0(R16) Client/Server, TBTk V1.3(R4), LinITX 8.4" 800x600 |
|
|
|
| Re: Shift + Numpad |
|
|
#4 (permalink) |
|
Toolkit Creator
Join Date: May 2006
Location: On your Six!
Posts: 1,870
![]() |
Ok. Maybe Zorlac will jump in here and help you. I haven't seen him post for a while now, so I don't know what he's up to...
PS: Can you remap those keys in the game?
__________________
(a.k.a. Snacko) Touchscreen: Innovatek TM-868 8"; Running Local Mode on XP Pro ![]() |
|
|
|
| Re: Shift + Numpad |
|
|
#5 (permalink) |
|
Creator
Join Date: May 2006
Location: Cambridge, UK
Posts: 1,612
![]() |
In client/server mode, can you confirm that the *SERVER* has NumLock enabled or Disabled? (As that is the one that interprets the macos it receives, and the NumLock status affects what he system sees when I send the keys).
I havent posted for a while because my laptop blew up, so have been trying to rebuild my digital life from scratch again... <sigh>
__________________
![]() ![]() (Setup: XP Pro, classic mode, LinITX 8" touchscreen (Client/Server), 19" touchscreen (Local), latest development version of TouchBuddy) Last edited by zorlac : 04-24-2007 at 03:06 PM. |
|
|
|
| Re: Shift + Numpad |
|
|
#6 (permalink) |
|
Addict
Join Date: Apr 2007
Posts: 9
![]() |
Server numlock is on.
I've attached a debug file, hold buttons send KEYDOWN and KEYUP events, touch buttons only seem to be sending KEYDOWN. *EDIT* What I meant to say is macro_select/deselect not KEYDOWN/UP although in this case they amount to the same thing. My button code: Code:
[new-button] type = hold name = Btn_Winch_Up tabname = SAR4 xpos = 11 ypos = 27 layer = 0 hold_expire_send = 1 hold_expire = 20 image_file = SAR4\Normal\images\Btn_Winch_Up.gif image_file_1 = SAR4\Pressed\images\Btn_Winch_Up.gif macro_select = predef: W, KEYDOWN macro_deselect = predef: W, KEYUP [end-button] [new-button] type = touch name = Btn_Spotlight_Left tabname = SAR4 xpos = 557 ypos = 213 layer = 0 image_file = SAR4\Normal\images\Btn_Spotlight_Left.gif image_file_1 = SAR4\Pressed\images\Btn_Spotlight_Left.gif macro_select = predef: SHIFT, KEYDOWN # macro_select = predef: NUMPAD4, KEYDOWN # macro_deselect = predef: NUMPAD4, KEYUP macro_select = predef: A, KEYDOWN macro_deselect = predef: A, KEYUP macro_deselect = predef: SHIFT, KEYUP [end-button] Kev.
__________________
TB V1.3.0(R16) Client/Server, TBTk V1.3(R4), LinITX 8.4" 800x600 Last edited by Cheesy : 04-28-2007 at 05:31 PM. |
|
|
|
| Re: Shift + Numpad |
|
|
#7 (permalink) |
|
Addict
Join Date: Apr 2007
Posts: 9
![]() |
Well, I've tried everything I can think of to get it working, Local sends the _deselect keyups to Notepad but Client/Server only sends _select macros.
Change the button type to hold and both macros work. Does anyone out there have working touch type buttons with Client/Server? Kev.
__________________
TB V1.3.0(R16) Client/Server, TBTk V1.3(R4), LinITX 8.4" 800x600 |
|
|
|
| Re: Shift + Numpad |
|
|
#8 (permalink) |
|
Creator
Join Date: May 2006
Location: Cambridge, UK
Posts: 1,612
![]() |
PM me and we can arrange for you to email me your entire profile (including the image files), and i`ll take a look a it in Client/Server.
__________________
![]() ![]() (Setup: XP Pro, classic mode, LinITX 8" touchscreen (Client/Server), 19" touchscreen (Local), latest development version of TouchBuddy) |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|