Previous 15994 Revisions Next

r935 Friday 7th September, 2007 at 04:29:25 UTC by R. Belmont
[SDLMESS] Update to u5 (also compatible with u4 core).
[src/osd/sdl]input.c video.c

src/osd/sdl/input.c
r934r935
495495   return r;
496496}
497497
498static char *alloc_name(char *instr)
498static char *alloc_name(const char *instr)
499499{
500500   char *out;
501501
r934r935
814814
815815   // SDL 1.2 only has 1 keyboard (1.3+ will have multiple, this must be revisited then)
816816   // add it now
817   devinfo = generic_device_alloc(&keyboard_list, alloc_name((char *)"System keyboard"));
817   devinfo = generic_device_alloc(&keyboard_list, alloc_name((const char *)"System keyboard"));
818818   devinfo->device = input_device_add(DEVICE_CLASS_KEYBOARD, devinfo->name, devinfo);
819819
820820   // populate it
r934r935
832832   }
833833
834834   // SDL 1.2 has only 1 mouse - 1.3+ will also change that, so revisit this then
835   devinfo = generic_device_alloc(&mouse_list, alloc_name((char *)"System mouse"));
835   devinfo = generic_device_alloc(&mouse_list, alloc_name((const char *)"System mouse"));
836836   devinfo->device = input_device_add(DEVICE_CLASS_MOUSE, devinfo->name, devinfo);
837837
838838   // add the axes
r934r935
975975         devinfo->keyboard.state[event.key.keysym.sym-SDLK_FIRST] = 0;
976976         break;
977977      case SDL_JOYAXISMOTION:
978         printf("joy %d axis %d to %d\n", event.jaxis.which, event.jaxis.axis, event.jaxis.value);
979978         devinfo = generic_device_find_index(joystick_list, event.jaxis.which);
980979         if (devinfo)
981980         {
src/osd/sdl/video.c
r934r935
168168   if (sdlwindow_init(machine))
169169      goto error;
170170
171   tc = palette_get_total_colors_with_ui(machine);
171   tc = machine->drv->total_colors;
172172
173173   // create the windows
174174   for (index = 0; index < video_config.numscreens; index++)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team