removes some code that shouldn't have been committed, fixes up a problem with rapid fire with buttons

git-svn-id: svn://svn.code.sf.net/p/qjoypad/code/trunk@105 c05e91a0-76c8-4ec0-b377-ef19ce7cc080
This commit is contained in:
John Toman
2009-08-20 01:12:19 +00:00
committed by virtuoussin13
parent eaebcb6e2f
commit 384b890f12
2 changed files with 1 additions and 12 deletions

View File

@ -94,6 +94,7 @@ void Button::jsevent( int value ) {
}
if (!isButtonPressed && rapidfire) {
timer->stop();
disconnect(timer, SIGNAL(timeout()), 0, 0);
if(isDown) {
click(false);
}

View File

@ -32,18 +32,6 @@ void JoyPad::resetToDev(int dev ) {
ioctl (joydev, JSIOCGAXES, &axes);
buttons = 0;
ioctl (joydev, JSIOCGBUTTONS, &buttons);
//~ uint16_t *button_mapping = (uint16_t*)calloc(KEY_MAX - BTN_MISC + 1, 2);
//~ ioctl (joydev, JSIOCGBTNMAP, button_mapping);
//~ for(int i = 0; i < buttons; i++) {
//~ printf("%04X\n", button_mapping[i]);
//~ }
//~ free((void*)button_mapping);
//~ printf("axis mapping\n");
//~ uint16_t *axis_mapping = (uint16_t*)calloc(ABS_MAX+1,2);
//~ for(int i = 0; i < ABS_MAX + 1; i++) {
//~ printf("%04X\n", axis_mapping[i]);
//~ }
//~ free((void*)axis_mapping);
//make sure that we have the axes we need.
//if one that we need doesn't yet exist, add it in.
//Note: if the current layout has a key assigned to an axis that did not