Home UserCP Memberlist Register Calendar FAQ
Home

Go Back   Official TouchBuddy Forum > Support > How do I... ?
Register FAQDonate Members List Calendar Search Today's Posts Mark Forums Read

   

Reply
 
LinkBack Thread Tools Display Modes
Shift + Numpad
Old 04-23-2007, 05:28 PM   #1 (permalink)
Addict
 
Join Date: Apr 2007
Posts: 9
Cheesy is an unknown quantity at this point
Default Shift + Numpad

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
Cheesy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Shift + Numpad
Old 04-23-2007, 07:47 PM   #2 (permalink)
 
Wild.Bill.Kelso's Avatar
Toolkit Creator
 
Join Date: May 2006
Location: On your Six!
Posts: 1,862
Wild.Bill.Kelso is on a distinguished road
Default Re: Shift + Numpad

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


Wild.Bill.Kelso is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Shift + Numpad
Old 04-23-2007, 11:26 PM   #3 (permalink)
Addict
 
Join Date: Apr 2007
Posts: 9
Cheesy is an unknown quantity at this point
Default Re: Shift + Numpad

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
Cheesy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Shift + Numpad
Old 04-24-2007, 01:03 AM   #4 (permalink)
 
Wild.Bill.Kelso's Avatar
Toolkit Creator
 
Join Date: May 2006
Location: On your Six!
Posts: 1,862
Wild.Bill.Kelso is on a distinguished road
Default Re: Shift + Numpad

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


Wild.Bill.Kelso is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Shift + Numpad
Old 04-24-2007, 03:02 PM   #5 (permalink)
Creator
 
Join Date: May 2006
Location: Cambridge, UK
Posts: 1,612
zorlac is on a distinguished road
Default Re: Shift + Numpad

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.
zorlac is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Shift + Numpad
Old 04-24-2007, 05:00 PM   #6 (permalink)
Addict
 
Join Date: Apr 2007
Posts: 9
Cheesy is an unknown quantity at this point
Default Re: Shift + Numpad

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]
I changed the numpad to a keyboard key to rule out the numpad.


Kev.
Attached Files
File Type: txt TouchBtnDebug.txt (12.0 KB, 1 views)
__________________
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.
Cheesy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Shift + Numpad
Old 05-04-2007, 05:31 PM   #7 (permalink)
Addict
 
Join Date: Apr 2007
Posts: 9
Cheesy is an unknown quantity at this point
Default Re: Shift + Numpad

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
Cheesy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Shift + Numpad
Old 05-04-2007, 09:16 PM   #8 (permalink)
Creator
 
Join Date: May 2006
Location: Cambridge, UK
Posts: 1,612
zorlac is on a distinguished road
Default Re: Shift + Numpad

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)
zorlac is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:15 PM.
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0

  www.touch-buddy.com        Archive  


Footer
vBSkinworks Top