FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Games

 
 
LinkBack Thread Tools
 
Old 12-25-2007, 05:07 PM
Warren Togami
 
Default SDL +lock keys patch?

Mike Miscevic wrote:

Hello Warren, Thomas,

I gleaned your email/contacts in the spec file for SDL-1.2.12-5,
fedora8. Hope this is the right place to send this request, if not, my
apologies.


Would you consider adding the attached patch which permits CAPSLOCK and
NUMLOCK keys to behave like normal keys? SDL's position I believe is to
reduce behavior of those keys as per their cross-platform desires.
However, in many x86 video games it is desirable (and by default in
certain cases) to use CAPSLOCK key like any other. Native linux (retail)
game such as Enemy Territory: Quake Wars and other idsoftware technology
based titles are such games.


Other linux distros seem to apply the patch, or similar. Mandriva comes
to mind. I noticed this when switching from Mandriva to Fedora.


Please find attached the patch for your consideration.

The patch, similar to Mandriva's patch (which I believe came from
Debian?) checks (during an init-phase of SDL) for the existance of env
SDL_DISABLE_LOCK_KEYS and if found enables "normal" key behavior for
lock keys. So this is opt-in for changed behavior.


Sincerely,
Mike Miscevic.

--Mike



Let's see if our Games SIG agrees upon it.

http://fedoraproject.org/wiki/SIGs/Games
http://www.redhat.com/mailman/listinfo/fedora-games-list
CC'ing this to fedora-games-list. How do people feel about this?

Warren Togami
wtogami@redhat.com

_______________________________________________
Fedora-games-list mailing list
Fedora-games-list@redhat.com
http://www.redhat.com/mailman/listinfo/fedora-games-list
 
Old 12-25-2007, 06:42 PM
Callum Lerwick
 
Default SDL +lock keys patch?

On Tue, 2007-12-25 at 13:07 -0500, Warren Togami wrote:
> Mike Miscevic wrote:

> > Would you consider adding the attached patch which permits CAPSLOCK and
> > NUMLOCK keys to behave like normal keys? SDL's position I believe is to
> > reduce behavior of those keys as per their cross-platform desires.
> > However, in many x86 video games it is desirable (and by default in
> > certain cases) to use CAPSLOCK key like any other. Native linux (retail)
> > game such as Enemy Territory: Quake Wars and other idsoftware technology
> > based titles are such games.

> Let's see if our Games SIG agrees upon it.

Sounds good to me, I usually map Caps Lock to "reload" since its right
next to WASD. Though I don't think I've actually run into this problem,
as yes John Carmack has a severe case of NIH syndrome and does not use
SDL, and I usually remap Caps Lock to Control...

What platforms is this a problem on, anyway? The only one I know of is
Macintosh ADB keyboards, and how relevant are those anymore. Did this
patch ever get merged anywhere?

http://lists.debian.org/debian-powerpc/2005/12/msg00214.html

Doing some googling, it seems the problem is actually some "obscure" X11
implementations, which is not something that really affects Fedora...
_______________________________________________
Fedora-games-list mailing list
Fedora-games-list@redhat.com
http://www.redhat.com/mailman/listinfo/fedora-games-list
 
Old 12-25-2007, 07:13 PM
Hans de Goede
 
Default SDL +lock keys patch?

Warren Togami wrote:

Mike Miscevic wrote:

Hello Warren, Thomas,

I gleaned your email/contacts in the spec file for SDL-1.2.12-5,
fedora8. Hope this is the right place to send this request, if not, my
apologies.


Would you consider adding the attached patch which permits CAPSLOCK
and NUMLOCK keys to behave like normal keys? SDL's position I believe
is to reduce behavior of those keys as per their cross-platform
desires. However, in many x86 video games it is desirable (and by
default in certain cases) to use CAPSLOCK key like any other. Native
linux (retail) game such as Enemy Territory: Quake Wars and other
idsoftware technology based titles are such games.


Other linux distros seem to apply the patch, or similar. Mandriva
comes to mind. I noticed this when switching from Mandriva to Fedora.


Please find attached the patch for your consideration.

The patch, similar to Mandriva's patch (which I believe came from
Debian?) checks (during an init-phase of SDL) for the existance of env
SDL_DISABLE_LOCK_KEYS and if found enables "normal" key behavior for
lock keys. So this is opt-in for changed behavior.


Sincerely,
Mike Miscevic.

--Mike



Let's see if our Games SIG agrees upon it.

http://fedoraproject.org/wiki/SIGs/Games
http://www.redhat.com/mailman/listinfo/fedora-games-list
CC'ing this to fedora-games-list. How do people feel about this?



I can remember actually hacking around the completely !@#$ behavior of
the capslock key under SDL in one application which specifically used
it, so this gets a +1 fro me (don't remember which app but if this gets
merged I'll do a search for it to revert the hack).



Regards,

Hans

_______________________________________________
Fedora-games-list mailing list
Fedora-games-list@redhat.com
http://www.redhat.com/mailman/listinfo/fedora-games-list
 

Thread Tools




All times are GMT. The time now is 07:21 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org