~ubuntu-branches/debian/experimental/mednafen/experimental

« back to all changes in this revision

Viewing changes to src/snes/interface.cpp

  • Committer: Package Import Robot
  • Author(s): Stephen Kitt
  • Date: 2012-01-31 07:21:35 UTC
  • mfrom: (1.2.8)
  • Revision ID: package-import@ubuntu.com-20120131072135-es3dj12y00xcnrsk
Tags: 0.9.19-1
* New upstream WIP version.
* Update copyright information.
* Refresh use-system-tremor.patch and remove psx-big-endian-only.patch.
* Add spelling-fixes.patch based on Lintian's recommendations.
* Build-depend on debhelper 9 or later and remove corresponding Lintian
  override.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
static uint8 MouseBLatch[2];
56
56
 
57
57
static uint8 *CustomColorMap = NULL;
58
 
static uint32 ColorMap[32768];
 
58
//static uint32 ColorMap[32768];
 
59
static std::vector<uint32> ColorMap;
59
60
 
60
61
static bool LoadCPalette(const char *syspalname, uint8 **ptr, uint32 num_entries)
61
62
{
479
480
 
480
481
 MDFNMP_AddRAM(131072, 0x7E << 16, SNES::memory::wram.data());
481
482
 
 
483
 ColorMap.resize(32768);
 
484
 
482
485
 if(!LoadCPalette(NULL, &CustomColorMap, 32768))
483
486
  return(0);    // FIXME: cleanup
484
487
 
620
623
 const int id;
621
624
};
622
625
 
623
 
static StrToBSIT_t StrToBSIT[] =
 
626
static const StrToBSIT_t StrToBSIT[] =
624
627
{
625
628
 { "none",      SNES::Input::DeviceNone },
626
629
 { "gamepad",   SNES::Input::DeviceJoypad },
639
642
 
640
643
 if(port < 2)
641
644
 {
642
 
  StrToBSIT_t *sb = StrToBSIT;
 
645
  const StrToBSIT_t *sb = StrToBSIT;
643
646
  int id = -1;
644
647
 
645
648
  if(MultitapEnabled[port] && !strcmp(type, "gamepad"))
716
719
 { "r", "Right Shoulder", 11, IDIT_BUTTON, NULL },
717
720
};
718
721
 
719
 
const InputDeviceInputInfoStruct MouseIDII[0x4] =
 
722
static const InputDeviceInputInfoStruct MouseIDII[0x4] =
720
723
{
721
724
 { "x_axis", "X Axis", -1, IDIT_X_AXIS_REL },
722
725
 { "y_axis", "Y Axis", -1, IDIT_Y_AXIS_REL },
788
791
 PortInfo
789
792
};
790
793
 
791
 
static MDFNSetting SNESSettings[] =
 
794
static const MDFNSetting SNESSettings[] =
792
795
{
793
796
 { "snes.input.port1.multitap", MDFNSF_EMU_STATE | MDFNSF_UNTRUSTED_SAFE, gettext_noop("Enable multitap on SNES port 1."), NULL, MDFNST_BOOL, "0", NULL, NULL },
794
797
 { "snes.input.port2.multitap", MDFNSF_EMU_STATE | MDFNSF_UNTRUSTED_SAFE, gettext_noop("Enable multitap on SNES port 2."), NULL, MDFNST_BOOL, "0", NULL, NULL },