I've got an old Nostromo n50 speedpad that I decided I wanted to try to get to work with WoW. I have looked into the Nostromo Linux drivers and Pystromo, but I decided to dip my toes into Python with Gizmo Daemon because I should
be able to use it for other gamepads in the future. I'm not exactly sure what the problem is but any help would be greatly appreciated. Here's what I've done so far:
Installed GizmoD from Synaptic.
Read through the tutorials and HOWTOs on the website.
Used gizmod -g to record the input from my Nostromo n50.
Attempted to modify a GizmoD map file to do what I wanted.
Up until the last part everything has been going fine. Here's the mapping of my input keys:
The last four keys are commented out in my map file for the moment since I'm not quite sure how to do them. I just want keys 01-10 to translate into my normal keyboard keys 1-9 and 0. The DPAD I want to translate into a normal WASD for gaming. I'm kind of stumped as to where to go from here. I run gizmod from a terminal, but it doesn't seem to work.
#***#*********************************************************************#*************************************************************************#***#***GizmoDaemonConfigScript#***NostromoSpeedpadn50config#***#*****************************************#*****************************************#***""" Copyright (c) 2007, Gizmo Daemon Team Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "ASIS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """#############################Imports##########################fromGizmoDaemonimport*fromGizmoScriptDefaultimport*importsubprocessENABLED=TrueVERSION_NEEDED=3.2INTERESTED_CLASSES=[GizmoEventClass.Standard]#############################KeyboardWoWClassdefinition##########################classKeyboardWoW(GizmoScriptDefault):""" Nostromo Speedpad n50 Event Mapping """#############################PublicFunctions##########################defonDeviceEvent(self,Event,Gizmo=None):""" Called from Base Class' onEvent method. See GizmodDispatcher.onEvent documention for an explanation of this function """#processthekey#01---------------ifEvent.Button=="BTN_A":Gizmod.Keyboards[0].createEventPress(GizmoEventType.EV_KEY,GizmoKey.KEY_1)returnTrue#02---------------elifEvent.Button=="BTN_B":Gizmod.Keyboards[0].createEventPress(GizmoEventType.EV_KEY,GizmoKey.KEY_2)returnTrue#03---------------elifEvent.Button=="BTN_C":Gizmod.Keyboards[0].createEventPress(GizmoEventType.EV_KEY,GizmoKey.KEY_3)returnTrue#04---------------elifEvent.Button=="BTN_X":Gizmod.Keyboards[0].createEventPress(GizmoEventType.EV_KEY,GizmoKey.KEY_4)returnTrue#05---------------elifEvent.Button=="BTN_Y":Gizmod.Keyboards[0].createEventPress(GizmoEventType.EV_KEY,GizmoKey.KEY_5)returnTrue#06---------------elifEvent.Button=="BTN_Z":Gizmod.Keyboards[0].createEventPress(GizmoEventType.EV_KEY,GizmoKey.KEY_6)returnTrue#07---------------elifEvent.Button=="BTN_TL":Gizmod.Keyboards[0].createEventPress(GizmoEventType.EV_KEY,GizmoKey.KEY_7)returnTrue#08---------------elifEvent.Button=="BTN_TR":Gizmod.Keyboards[0].createEventPress(GizmoEventType.EV_KEY,GizmoKey.KEY_8)returnTrue#09---------------elifEvent.Button=="BTN_TL2":Gizmod.Keyboards[0].createEventPress(GizmoEventType.EV_KEY,GizmoKey.KEY_9)returnTrue#10---------------elifEvent.Button=="BTN_TR2":Gizmod.Keyboards[0].createEventPress(GizmoEventType.EV_KEY,GizmoKey.KEY_0)returnTrue#DPADUP---------#elifEvent.Button=="?????":#Gizmod.Keyboards[0].createEventPress(GizmoEventType.EV_KEY,GizmoKey.KEY_W)#returnTrue#DPADDOWN-------#elifEvent.Button=="?????":#Gizmod.Keyboards[0].createEventPress(GizmoEventType.EV_KEY,GizmoKey.KEY_S)#returnTrue#DPADLEFT-------#elifEvent.Button=="?????":#Gizmod.Keyboards[0].createEventPress(GizmoEventType.EV_KEY,GizmoKey.KEY_A)#returnTrue#DPADRIGHT------#elifEvent.Button=="?????":#Gizmod.Keyboards[0].createEventPress(GizmoEventType.EV_KEY,GizmoKey.KEY_D)#returnTrueelse:#unmatchedevent,keepprocessingreturnFalse#eventnotofinterestreturnFalse#############################PrivateFunctions##########################def__init__(self):""" Default Constructor """GizmoScriptDefault.__init__(self,ENABLED,VERSION_NEEDED,INTERESTED_CLASSES)#############################KeyboardWoWclassend###########################registertheuserscriptKeyboardWoW()
Once again, I appreciate any help!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OS: Ubuntu 8.10 Karmic Koala, fully updated
I've got an old Nostromo n50 speedpad that I decided I wanted to try to get to work with WoW. I have looked into the Nostromo Linux drivers and Pystromo, but I decided to dip my toes into Python with Gizmo Daemon because I should
be able to use it for other gamepads in the future. I'm not exactly sure what the problem is but any help would be greatly appreciated. Here's what I've done so far:
Installed GizmoD from Synaptic.
Read through the tutorials and HOWTOs on the website.
Used gizmod -g to record the input from my Nostromo n50.
Attempted to modify a GizmoD map file to do what I wanted.
Up until the last part everything has been going fine. Here's the mapping of my input keys:
The last four keys are commented out in my map file for the moment since I'm not quite sure how to do them. I just want keys 01-10 to translate into my normal keyboard keys 1-9 and 0. The DPAD I want to translate into a normal WASD for gaming. I'm kind of stumped as to where to go from here. I run gizmod from a terminal, but it doesn't seem to work.
Once again, I appreciate any help!