Is it possible to stop a program from accepting certain input?

Pedeadstrian

GBAtemp's Official frill-necked lizard.
OP
Member
Joined
Oct 12, 2012
Messages
3,966
Trophies
2
Location
Sandy Eggo
XP
3,892
Country
United States
So, here's my problem. I like to read visual novels while bundled up in my blanket. Using a mouse and keyboard makes that difficult, so I use my PS2 controller. However, whenever I play visual novels, some controls are already assigned to the controller, so while I'd want JoyToKey to make the X button act as a mouse click, it ends up doing both the mouse click and whatever the game already assigned that button to.

I know I can just use another button, but you're asking me to use Triangle as "Accept/OK" and that is NOT acceptable OR OK. It was bad enough when Final Fantasy 8 made me use Circle as Accept/OK, but this is crossing the line.

*ahem* So, is there a way to block a device's input on a program-level only, and not end up blocking it completely?
 

Foxi4

Endless Trash
Global Moderator
Joined
Sep 13, 2009
Messages
30,825
Trophies
3
Location
Gaming Grotto
XP
29,843
Country
Poland
I'm an XPadder user and I've never encountered the "double input" problem, to be honest. Actually, there seems to be something wrong with the game, not your setup. I mean, it should either read keystrokes or the game pad, but not both at the same time. :rofl2:

Are you sure that you can't change in-game key bindings?

As for blocking input, I know AutoHotkey allows blocking keyboard and mouse input, but I don't think I've seen one of those for controller input. Moreover, if you block controller input altogether, JoyToKey won't read it either... so you sort of need it blocked for just he one application... a bit of a pickle right there. :unsure:
 

Pedeadstrian

GBAtemp's Official frill-necked lizard.
OP
Member
Joined
Oct 12, 2012
Messages
3,966
Trophies
2
Location
Sandy Eggo
XP
3,892
Country
United States
I'm an XPadder user and I've never encountered the "double input" problem, to be honest. Actually, there seems to be something wrong with the game, not your setup. I mean, it should either read keystrokes or the game pad, but not both at the same time. :rofl2:

Are you sure that you can't change in-game key bindings?

As for blocking input, I know AutoHotkey allows blocking keyboard and mouse input, but I don't think I've seen one of those for controller input. Moreover, if you block controller input altogether, JoyToKey won't read it either... so you sort of need it blocked for just he one application... a bit of a pickle right there. :unsure:
I've had it occur with most (if not all) visual novels I've read/played on the computer. I always make the X button LMB or Space, and in Japan, the X button is usually for menu or back, which is the exact opposite of what I want it to do. As for changing the hotkeys, there's rarely an option to do that in these types of programs. So yeah. A pickle indeed. Using Triangle to advance text is just... barbaric.
 

_v3

Well-Known Member
Member
Joined
Oct 12, 2013
Messages
708
Trophies
1
Age
30
XP
2,732
Country
Croatia
I'm an XPadder user and I've never encountered the "double input" problem, to be honest. Actually, there seems to be something wrong with the game, not your setup. I mean, it should either read keystrokes or the game pad, but not both at the same time. :rofl2:

Are you sure that you can't change in-game key bindings?

As for blocking input, I know AutoHotkey allows blocking keyboard and mouse input, but I don't think I've seen one of those for controller input. Moreover, if you block controller input altogether, JoyToKey won't read it either... so you sort of need it blocked for just he one application... a bit of a pickle right there. :unsure:

What he was trying to say is that the game already has predefined non-changeable gamepad controlls and since the controller has already been mapped (by the game) to do certain functions, binding controller functions to Xpadder/JoyToKey would result in a "double-action".

@ OP some games don't give an option not to use the controller while it's plugged in (which is, frankly, very stupid). I don't know if there is a solution to this problem. Sorry I couldn't help much.
 

Foxi4

Endless Trash
Global Moderator
Joined
Sep 13, 2009
Messages
30,825
Trophies
3
Location
Gaming Grotto
XP
29,843
Country
Poland
What he was trying to say is that the game already has predefined non-changeable gamepad controlls and since the controller has already been mapped (by the game) to do certain functions, binding controller functions to Xpadder/JoyToKey would result in a "double-action".

@ OP some games don't give an option not to use the controller while it's plugged in (which is, frankly, very stupid). I don't know if there is a solution to this problem. Sorry I couldn't help much.
I know what he meant, I'm just thinking if I know an app that sandboxes other programs in a way that could filter that problem out. :P All that's coming to my head are convoluted VM setups or digging in the game config files right now, but I'm sure there's "something" out there that could solve his problem. ;)
 

Ericthegreat

Not New Member
Member
Joined
Nov 8, 2008
Messages
3,455
Trophies
2
Location
Vana'diel
XP
4,282
Country
United States
I've had it occur with most (if not all) visual novels I've read/played on the computer. I always make the X button LMB or Space, and in Japan, the X button is usually for menu or back, which is the exact opposite of what I want it to do. As for changing the hotkeys, there's rarely an option to do that in these types of programs. So yeah. A pickle indeed. Using Triangle to advance text is just... barbaric.
I cannot stand the O as yes/enter either lol. This is a tough one, but perhaps there is a control config file you could manually edit? (there a chance its encrypted tho and would be more work then worth it, especially if you had to repackage it.)
 

Pedeadstrian

GBAtemp's Official frill-necked lizard.
OP
Member
Joined
Oct 12, 2012
Messages
3,966
Trophies
2
Location
Sandy Eggo
XP
3,892
Country
United States
I cannot stand the O as yes/enter either lol. This is a tough one, but perhaps there is a control config file you could manually edit? (there a chance its encrypted tho and would be more work then worth it, especially if you had to repackage it.)
There is no simple .ini. I'd have to mess around with the files, unpack them, repack them, etc., assuming I can even find a tool to do so. I guess I'll have to stick to /\ for now.
 

YayMii

hi
Member
Joined
Jun 24, 2009
Messages
4,916
Trophies
0
Age
28
Location
that place
XP
758
Country
Canada
You could try plugging in your controller after the game starts. I found that some games only tend to detect controllers at startup while Xpadder can detect them upon plugin, so having the controller unplugged at startup would prevent the game from seeing the controller. That's how I got my Rock Band guitar to work with GH3 PC despite the game not properly supporting it.
I'm not sure if JoyToKey works the same way, but it should be easy enough to find the old freeware version of Xpadder (or the latest non-freeware version ;)) somewhere online.
 

Pedeadstrian

GBAtemp's Official frill-necked lizard.
OP
Member
Joined
Oct 12, 2012
Messages
3,966
Trophies
2
Location
Sandy Eggo
XP
3,892
Country
United States
You could try plugging in your controller after the game starts. I found that some games only tend to detect controllers at startup while Xpadder can detect them upon plugin, so having the controller unplugged at startup would prevent the game from seeing the controller. That's how I got my Rock Band guitar to work with GH3 PC despite the game not properly supporting it.
I'm not sure if JoyToKey works the same way, but it should be easy enough to find the old freeware version of Xpadder (or the latest non-freeware version ;)) somewhere online.
Oh god, I completely forgot about that. I have to restart PCSX2 all the time because I plug in my controller after I started the game. It worked. You're awesome. You saved me from the lunacy that is using /\ as accept/enter/ok.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: (i was allowed to do that)