src/mess/machine/ti99/datamux.c
| r15093 | r15094 | |
| 254 | 254 | m_space = m_cpu->memory().space(AS_PROGRAM); |
| 255 | 255 | |
| 256 | 256 | m_devices.reset(); // clear the list |
| 257 | | m_use32k = (ioport("RAM")->read()==1)? TRUE : FALSE; |
| 257 | m_use32k = (ioport("RAM")->read()==1); |
| 258 | 258 | |
| 259 | 259 | // better use a region? |
| 260 | 260 | if (m_ram16b==NULL) m_ram16b = (UINT16*)malloc(32768); |
| r15093 | r15094 | |
| 305 | 305 | LOG("Datamux device count = %d\n", m_devices.count()); |
| 306 | 306 | } |
| 307 | 307 | |
| 308 | INPUT_PORTS_START( datamux ) |
| 309 | PORT_START( "RAM" ) /* config */ |
| 310 | PORT_CONFNAME( 0x01, 0x01, "Console 32 KiB RAM upgrade (16 bit)" ) |
| 311 | PORT_CONFSETTING( 0x00, DEF_STR( Off ) ) |
| 312 | PORT_CONFSETTING( 0x01, DEF_STR( On ) ) |
| 313 | |
| 314 | PORT_START( "GROMENA" ) |
| 315 | PORT_CONFNAME( 0x01, 0x01, "Console GROMs" ) |
| 316 | PORT_CONFSETTING( 0x00, DEF_STR( Off ) ) |
| 317 | PORT_CONFSETTING( 0x01, DEF_STR( On ) ) |
| 318 | |
| 319 | INPUT_PORTS_END |
| 320 | |
| 321 | ioport_constructor ti99_datamux_device::device_input_ports() const |
| 322 | { |
| 323 | return INPUT_PORTS_NAME(datamux); |
| 324 | } |
| 325 | |
| 308 | 326 | const device_type DATAMUX = &device_creator<ti99_datamux_device>; |
src/mess/machine/ti99/mecmouse.c
| r15093 | r15094 | |
| 205 | 205 | m_last_my = 0; |
| 206 | 206 | } |
| 207 | 207 | |
| 208 | INPUT_PORTS_START( mecmouse ) |
| 209 | /* 3 ports for mouse */ |
| 210 | PORT_START("MOUSEX") /* Mouse - X AXIS */ |
| 211 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_X) PORT_SENSITIVITY(100) PORT_KEYDELTA(0) PORT_PLAYER(1) |
| 212 | |
| 213 | PORT_START("MOUSEY") /* Mouse - Y AXIS */ |
| 214 | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_Y) PORT_SENSITIVITY(100) PORT_KEYDELTA(0) PORT_PLAYER(1) |
| 215 | |
| 216 | PORT_START("MOUSE0") /* Mouse - buttons */ |
| 217 | PORT_BIT(0x0001, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("Mouse Button 1") PORT_PLAYER(1) |
| 218 | PORT_BIT(0x0002, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_NAME("Mouse Button 2") PORT_PLAYER(1) |
| 219 | INPUT_PORTS_END |
| 220 | |
| 221 | ioport_constructor mecmouse_device::device_input_ports() const |
| 222 | { |
| 223 | return INPUT_PORTS_NAME( mecmouse ); |
| 224 | } |
| 225 | |
| 208 | 226 | const device_type MECMOUSE = &device_creator<mecmouse_device>; |
src/mess/drivers/ti99_4x.c
| r15093 | r15094 | |
| 163 | 163 | /* TI99/4a: 48-key keyboard, plus two optional joysticks (2 shift keys) */ |
| 164 | 164 | static INPUT_PORTS_START(ti99_4a) |
| 165 | 165 | |
| 166 | | PORT_START( "RAM" ) /* config */ |
| 167 | | PORT_CONFNAME( 0x01, 0x09, "Console 32 KiB RAM upgrade (16 bit)" ) |
| 168 | | PORT_CONFSETTING( 0x00, DEF_STR( Off ) ) |
| 169 | | PORT_CONFSETTING( 0x01, DEF_STR( On ) ) |
| 170 | | |
| 171 | | PORT_START( "GROMENA" ) |
| 172 | | PORT_CONFNAME( 0x01, 0x01, "Console GROMs" ) |
| 173 | | PORT_CONFSETTING( 0x00, DEF_STR( Off ) ) |
| 174 | | PORT_CONFSETTING( 0x01, DEF_STR( On ) ) |
| 175 | | |
| 176 | 166 | PORT_START( "MECMOUSE" ) |
| 177 | 167 | PORT_CONFNAME( 0x01, 0x00, "Mechatronics Mouse" ) |
| 178 | 168 | PORT_CONFSETTING( 0x00, DEF_STR( Off ) ) |
| 179 | 169 | PORT_CONFSETTING( 0x01, DEF_STR( On ) ) |
| 180 | | /* |
| 181 | | // We do not want to show this setting; makes only sense for Geneve |
| 182 | | PORT_START( "MODE" ) |
| 183 | | PORT_CONFNAME( 0x01, 0x00, "Ext. cards modification" ) PORT_CONDITION( "HFDCDIP", 0x0f, EQUALS, GM_NEVER ) |
| 184 | | PORT_CONFSETTING( 0x00, "Standard" ) |
| 185 | | PORT_CONFSETTING( GENMOD, "GenMod" ) |
| 186 | | */ |
| 187 | 170 | |
| 188 | | /* 3 ports for mouse */ |
| 189 | | PORT_START("MOUSEX") /* Mouse - X AXIS */ |
| 190 | | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_X) PORT_SENSITIVITY(100) PORT_KEYDELTA(0) PORT_PLAYER(1) |
| 191 | | |
| 192 | | PORT_START("MOUSEY") /* Mouse - Y AXIS */ |
| 193 | | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_Y) PORT_SENSITIVITY(100) PORT_KEYDELTA(0) PORT_PLAYER(1) |
| 194 | | |
| 195 | | PORT_START("MOUSE0") /* Mouse - buttons */ |
| 196 | | PORT_BIT(0x0001, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("Mouse Button 1") PORT_PLAYER(1) |
| 197 | | PORT_BIT(0x0002, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_NAME("Mouse Button 2") PORT_PLAYER(1) |
| 198 | | |
| 199 | | |
| 200 | 171 | /* 4 ports for keyboard and joystick */ |
| 201 | 172 | PORT_START("KEY0") /* col 0 */ |
| 202 | 173 | PORT_BIT(0x0088, IP_ACTIVE_LOW, IPT_UNUSED) |
| r15093 | r15094 | |
| 284 | 255 | |
| 285 | 256 | static INPUT_PORTS_START(ti99_4) |
| 286 | 257 | |
| 287 | | PORT_START( "RAM" ) /* config */ |
| 288 | | PORT_CONFNAME( 0x01, 0x09, "Console 32 KiB RAM upgrade (16 bit)" ) |
| 289 | | PORT_CONFSETTING( 0x00, DEF_STR( Off ) ) |
| 290 | | PORT_CONFSETTING( 0x01, DEF_STR( On ) ) |
| 291 | | |
| 292 | | PORT_START( "GROMENA" ) |
| 293 | | PORT_CONFNAME( 0x01, 0x01, "Console GROMs" ) |
| 294 | | PORT_CONFSETTING( 0x00, DEF_STR( Off ) ) |
| 295 | | PORT_CONFSETTING( 0x01, DEF_STR( On ) ) |
| 296 | | |
| 297 | 258 | PORT_START( "MECMOUSE" ) |
| 298 | 259 | PORT_CONFNAME( 0x01, 0x00, "Mechatronics Mouse" ) |
| 299 | 260 | PORT_CONFSETTING( 0x00, DEF_STR( Off ) ) |
| r15093 | r15094 | |
| 304 | 265 | PORT_CONFSETTING( 0x00, DEF_STR( Off ) ) |
| 305 | 266 | PORT_CONFSETTING( 0x01, DEF_STR( On ) ) |
| 306 | 267 | |
| 307 | | /* 3 ports for mouse */ |
| 308 | | PORT_START("MOUSEX") /* Mouse - X AXIS */ |
| 309 | | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_X) PORT_SENSITIVITY(100) PORT_KEYDELTA(0) PORT_PLAYER(1) |
| 310 | | |
| 311 | | PORT_START("MOUSEY") /* Mouse - Y AXIS */ |
| 312 | | PORT_BIT( 0xff, 0x00, IPT_TRACKBALL_Y) PORT_SENSITIVITY(100) PORT_KEYDELTA(0) PORT_PLAYER(1) |
| 313 | | |
| 314 | | PORT_START("MOUSE0") /* Mouse - buttons */ |
| 315 | | PORT_BIT(0x0001, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("Mouse Button 1") PORT_PLAYER(1) |
| 316 | | PORT_BIT(0x0002, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_NAME("Mouse Button 2") PORT_PLAYER(1) |
| 317 | | |
| 318 | 268 | /* 4 ports for keyboard and joystick */ |
| 319 | 269 | PORT_START("KEY0") /* col 0 */ |
| 320 | 270 | PORT_BIT(0x0080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("1 !") PORT_CODE(KEYCODE_1) PORT_CHAR('1') PORT_CHAR('!') |