> From: James Paige <[email protected]>
> Sent: Wednesday, April 27, 2011 1:28 PM
> 
> On Wed, Apr 27, 2011 at 10:35:32AM -0700, [email protected] 
> wrote:
> > -Added Joystick Config button to Options dialog, but it's disabled for now.
> > -Updated release notes.
> 
> I have been meaning to have a chat with you Jay, about how joystick 
> support should work. the joystick support in the gfx_sdl backend is 
> pretty terrible, and I really want to improve it, so I am interested in 
> your plans gfx_directx's joystick support.

Well, I was considering presenting the user with all of the buttons
and axises the engine would process, and allow the user to set them
by selecting the control and physically pressing a button on the
joystick/gamepad or moving an axis. After a control is set, if the
user presses any buttons or moves axises, it would identify on the
configuration menu which engine controls are engaging.

Entering all this in every time could get irritating, so a config
file should probably be designed for this setup. I haven't started
any designs on config file layout yet.

> Right now, gfx_sdl just takes the first two axises on the first joystick 
> and assumes they are the x and y axis, and takes the first two buttons 
> and assumes they are reasonable for accept/cancel. This is a reasonable 
> assumption on many older joysticks, but it fails badly on many others 
> (PS3 USB joysticks are a great example of a common one it fails on)

I think that's what gfx_directx does, too. Using a config menu/file
would alleviate that problem.

> Another problem is that button presses are oversensitive. They need to 
> work more like keypresses do in gfx_sdl

How do you mean? I think the current button state is reported to the
engine. Are you talking about multi-state buttons? Or do you mean the
input is being interpreted too frequently?

> And the built-in joystick calibration screen (CTRL+J) is utter worthless 
> crap. It can only set analog thresholds (which is was important in the 
> DOS days, but is worthless on modern hardware) and switch the action of 
> the first two buttons.

I was thinking of designing the configuration menu much like the config
menu on the dolphin emulator. It's straightforward, intuitive.

> I also noticed in the gfx_directx plan, that you mentioned the 
> possibility of mapping joystick input to keyboard input. In many ways I 
> really like this. I do want the joystick button behavior to be really 
> consistent witht he keyboard behavior. I am a little worried about 
> having a feature like this enabled by default for old games, because I 
> can see it potentially breaking games that plotscript input with both 
> keyboard and joystick support... but the number of games that actually 
> do that is probably extremely small... I only know of two of them, and I 
> wrote them both, and both of them would be unaffected by a thing like 
> that, so it is probably harmless.
> 
> I think I would prefer to have a joystick-to-keyboard mapping feature 
> standard for the engine, rather than built into each backend... but that 
> is something that still needs thinking about.

Oh, that idea was about taking buttons/axises that are not mapped to
engine input and allowing the user to set them to perform keyboard or
mouse macros. In the event a user had a 32 button gamepad, they could
map the unused buttons to perform some key combination. But the benefits
derived from this doesn't seem to justify the cost of time.

I don't like the idea because it means *a lot* of work. :P So I'll be
scrapping that from the plan for gfx_directx.

> Also somewhat relevant: 
> http://rpg.hamsterrepublic.com/ohrrpgce/Plan_for_improved_mouse_support




_______________________________________________________
Unlimited Disk, Data Transfer, PHP/MySQL Domain Hosting
              http://www.doteasy.com 
_______________________________________________
Ohrrpgce mailing list
[email protected]
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org

Reply via email to