On Wed, Apr 27, 2011 at 12:07:26PM -0700, Jay Tennant wrote:
> > 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.

I have an idea for a config file layout. I'll add it to the wiki. We 
don't really have a config file yet, but having one would be a big 
benefit. I want something that resembles windows ini files with sections 
and key=value pairs.

> > 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?

Current button state is report as pressed or not pressed, but ther eis 
no way to detect a button-down. You can do that for keypresses with 
keyval >> 1

> > 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.

Do you have a link to a screenshot? I have never used Dolphin before.

> > 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.

What I was thinking of was not macros, but a 1-to-1 mapping of joystick 
inputs to keyboard inputs.

I am gathering my thoughts about this on the wiki:

http://rpg.hamsterrepublic.com/ohrrpgce/Plan_for_improved_joystick_support

---
James
_______________________________________________
Ohrrpgce mailing list
[email protected]
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org

Reply via email to