Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Well, i didnt saw it released and its very helpfull method
- Baisicly, it can detect when the keyboard is open or close
- So if you coding a mod menu you could do like If keyboard is open, then stop the timer, then when u using dpad or buttons on the keyboard, it will not scroll trough the options on the mod menu
- So here it is (Add it into a timer):
- C#:
- Code:
- public static Boolean KeyBoardisOpen()
- {
- if (PS3.Extension.ReadByte(0x73145F) == 0x1)
- {
- return true;
- }
- else
- {
- return false;
- }
- }
- VB.NET:
- Code:
- Public Shared Function KeyBoardisOpen() As Boolean
- If (PS3.Extension.ReadByte(&H73145F) = &H1) Then
- Return True
- Else
- Return False
- End If
- End Function
- Then add this to a timer/thread or whatever:
- Code:
- if (KeyBoardisOpen() == true)
- {
- Timer1.Stop()
- }
- else
- {
- Timer1.Start()
- }
- Hope it helped :)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement