..:: PCSX2 Forums ::..
Register | Help | Log In |
Register PCSX2 Site Forums Member List Donate View Today's Posts Search

Current time: 05-21-2013, 09:37 PM Hello There, Guest! (Login — Register)

..:: PCSX2 Forums ::.. / Plugins / Plugin discussion and support v
« Previous 1 ... 8 9 10 11 12 ... 145 Next »
/ [patch] PadSSSPSX / KeyEvents



User(s) browsing this thread: 1 Guest(s)

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
[patch] PadSSSPSX / KeyEvents
Author Message
KrossX Offline
クロッスエクス
*****

Posts: 656
Joined: Jan 2012
Location: Argentina
Reputation: 35
Post: #1
[patch] PadSSSPSX / KeyEvents
From the following bug:

(08-21-2012 08:58 PM)Renzu Wrote:  I figured it out. Thanks for the assistance.

I had to switch the controller from PadSSSPSX w/ a dualshock 3 ps3 controller to Lillypad and press pgup for it work. I guess I'll be using Lillypad from now on since it doesn't work while using PadSSSPSX.

PadSSSPSX uses Direct Input for keyboard and on keyevent it uses the MapVirtualKey function to get the VK value. But, that function ain't to be used with DInput scan codes so it returns uknown for keys like pgup. Thus, I made an array that converts the DIK codes to VK codes.

It's ugly to see that array, so I suggest hiding it away somewhere. XD
But it seem to work.


Attached File(s)
.zip  patch.zip (Size: 1,51 KB / Downloads: 33)

[Image: nbKSK.jpg]
08-22-2012 04:33 AM
Visit this user's website Find all posts by this user Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread



Current time: 05-21-2013, 09:37 PM

Contact Us | PCSX2 | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication

Powered By MyBB, © 2002-2013 MyBB Group.
Theme created by IncadudeF and modified by bositman