Results 1 to 4 of 4
  1. #1
    tuve2's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Swe
    Posts
    396
    Reputation
    10
    Thanks
    22
    My Mood
    Drunk

    [Info] Mouse + Gamepad Info

    Just some info somebody here might need someday

    Mouse Input:

    Set Mouse Position(Just Oblivious is you used C#):
    Code:
    Mouse.SetPosition(int x, int y)

    And it is related to the application upper-left conner.


    Mouse properties:

    LeftButton:
    Type: ButtonState
    Returns the state of the left mouse button.


    MiddleButton:
    Type: ButtonState
    Returns the state of the middle mouse button.


    RightButton:
    Type: ButtonState
    Returns the state of the right mouse button.


    ScrollWheelValue:
    Type: int
    Returns the total accumulated movement of the wheel since the game start.


    X:
    Type: int
    Returns the X position of the mouse.


    XButton1:
    Type: ButtonState
    Returns the state of additional buttons on some mice.


    XButton2:
    Type: ButtonState
    Returns the state of additional buttons on some mice.


    Y:
    Type: int
    Returns the Y position of the mouse.

    Just realized that this is pretty worthless....

    Mouse Visible:
    Code:
    IsMouseVisible = true/false;

    Gamepad Input:


    Gamepad properties:

    Buttons:
    Type: GamePadButtons
    Returns a struct that tells which buttons are currently pressed. Each button is represented by one ButtonState.

    DPad:
    Type: GamePadDPad
    Returns a struct that tells which directions on the DPad are pressed. Struct include (up, down, left, right).

    IsConnected:
    Type: Boolean
    Indicates is the controller is connected.

    ThumbSticks:
    Type: GamePadThumbSticks
    Returns a struct that determines the directions of the thumbsticks. Each thumbstick is a vector2. Min Value -1 and Max Value is +1. 0 is if not moving.

    Triggers:
    Type: GamePadTriggers
    Returns if a Trigger button is pressed. With value from 0 to 1. 1 = Fully Pressed.

    this was just worthless or? I just got cramp in my arm. -.-

  2. #2
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    Some useful info actually.
    Ok we can get it fast from "almost" anywhere, but still, it's somehow useful information. (Type and Return of members is always useful)
    Light travels faster than sound. That's why most people seem bright until you hear them speak.

  3. #3
    tuve2's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Swe
    Posts
    396
    Reputation
    10
    Thanks
    22
    My Mood
    Drunk
    Quote Originally Posted by Brinuz View Post
    Some useful info actually.
    Ok we can get it fast from "almost" anywhere, but still, it's somehow useful information. (Type and Return of members is always useful)
    I got a book of it all xD Didn't do keyboard input but there is just IsKeyDown and IsKeyUp... And some sh*t.

  4. #4
    tuve2's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Swe
    Posts
    396
    Reputation
    10
    Thanks
    22
    My Mood
    Drunk


    Just a IMG i did

Similar Threads

  1. Need info on gaming mouses
    By blueduece2 in forum General
    Replies: 10
    Last Post: 02-12-2009, 09:52 PM
  2. MPGH-FoM Info.
    By RebornAce in forum General
    Replies: 70
    Last Post: 05-16-2006, 05:03 PM
  3. Server Info
    By Dave84311 in forum Puzzle Pirates Hacks & Cheats
    Replies: 13
    Last Post: 02-09-2006, 03:52 PM
  4. warrock wpe packet info
    By kvmn8 in forum WarRock - International Hacks
    Replies: 0
    Last Post: 01-04-2006, 08:36 PM
  5. WarRock WPE Info...
    By RebornAce in forum WarRock - International Hacks
    Replies: 7
    Last Post: 12-31-2005, 09:55 AM