| Summary: | FB_OpenMouse -> SDL_getenv("TSLIB_TSDEVICE") | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Terence Tsai <cxh> |
| Component: | events | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED INVALID | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | icculus |
| Version: | 1.2.14 | ||
| Hardware: | All | ||
| OS: | Linux | ||
Why not? Are you confusing mousedrv and mousedev? Resolving bug as INVALID. This appears to be a misunderstanding of what is happening in that piece of code. If this is incorrect, and you feel that this code is in fact buggy, you are welcome to reopen the bug. Thanks! --ryan. |
SDL_INPUT_TSLIB = 1 SDL_getenv("TSLIB_TSDEVICE") will be never run. #if SDL_INPUT_TSLIB if ( mousedrv && (SDL_strcmp(mousedrv, "TSLIB") == 0) ) { /* SDL_getenv will never run */ if (mousedev == NULL) mousedev = SDL_getenv("TSLIB_TSDEVICE"); if (mousedev != NULL) { ts_dev = ts_open(mousedev, 1); if ((ts_dev != NULL) && (ts_config(ts_dev) >= 0)) { #ifdef DEBUG_MOUSE fprintf(stderr, "Using tslib touchscreen\n"); #endif mouse_drv = MOUSE_TSLIB; mouse_fd = ts_fd(ts_dev); return mouse_fd; } } mouse_drv = MOUSE_NONE; return mouse_fd; } #endif /* SDL_INPUT_TSLIB */